//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.Collections;
			using System.Collections.Specialized;
			using System.ComponentModel;
			using System.Configuration;
			using System.Data.Common;
			using System.Data;
			using System.Data.SqlClient;
			using System.Drawing;
			using System;
			using System.IO;
			using System.Reflection;
			using System.Resources;
			using System.Windows.Forms;
			using Utility;
			//using Word;
			using Font = System.Drawing.Font;
			using Application = System.Windows.Forms.Application;
			// Warning -- Type: Word.Range conflicts with a another imported type or namespace name,  Disabled Using Ref --> using Range = Word.Range;
			
		#endregion
		
	public class frmNoiSoi : Form
	
	{
		
		#region Fields
			private string _clrISN;
			private bool _Insert;
			private string _NgayKham;
			private ArrayList arrDescription;
			private ArrayList arrISN;
			private ArrayList arrPicPath;
			private Button btAdd;
			private Button btCapNhat;
			private Button btHinhAnh;
			private Button btIn;
			private Button btLuu;
			private Button btRemove;
			private Button btThoat;
			private IContainer components;
			private string connStr;
			private Database_Com db;
			private GroupBox gbNoiSoiText;
			private GroupBox groupBox1;
			private GroupBox groupBox2;
			private string ImagePath;
			private Label label1;
			private Label label10;
			private Label label11;
			private Label label12;
			private Label label13;
			private Label label14;
			private Label label15;
			private Label label16;
			private Label label17;
			private Label label18;
			private Label label19;
			private Label label2;
			private Label label3;
			private Label label4;
			private Label label5;
			private Label label6;
			private Label label7;
			private Label label8;
			private Label label9;
			private ListBox lbNoiSoi;
			private TreeNode node;
			private Panel panel1;
			private Splitter splitter1;
			private TextBox tbHoTen;
			private TextBox tbID;
			private TextBox tbNoiSoiNgoaiDanhSach;
			private ToolTip toolTip1;
			private TreeView tvNoiSoi;
			private TextBox txtCamNghi;
			private TextBox txtCuonDuoiP;
			private TextBox txtCuonDuoiT;
			private TextBox txtCuonGiuaP;
			private TextBox txtCuonGiuaT;
			private TextBox txtDeNghi;
			private TextBox txtHaHong;
			private TextBox txtKheGiuaP;
			private TextBox txtKheGiuaT;
			private TextBox txtKheTrenP;
			private TextBox txtKheTrenT;
			private TextBox txtMangNhiP;
			private TextBox txtMangNhiT;
			private TextBox txtMomMocP;
			private TextBox txtMomMocT;
			private TextBox txtOngTaiNgoaiP;
			private TextBox txtOngTaiNgoaiT;
			private TextBox txtThanhQuan;
			private TextBox txtVachNganP;
			private TextBox txtVachNganT;
			private TextBox txtVomHongP;
			private TextBox txtVomHongT;
		#endregion
		
		#region Constructors
		
			public frmNoiSoi (string ID, string HoTen, string clrISN, bool Insert, string NgayKham)
			
			{
				this.arrPicPath = new ArrayList ();
				this.arrDescription = new ArrayList ();
				this.arrISN = new ArrayList ();
				this.db = new Database_Com ();
				this.InitializeComponent ();
				this.connStr = Connection.ConnectionString ();
				this.ImagePath = ConfigurationSettings.AppSettings["ImagePath"];
				this.tbID.Text = ID;
				this.tbHoTen.Text = HoTen;
				this._clrISN = clrISN;
				this._Insert = Insert;
				this._NgayKham = NgayKham;
				return;
			}
			
		#endregion
		
		#region Methods
		
			private void btAdd_Click (object sender, EventArgs e)
			
			{
				this.tvNoiSoi_DoubleClick (sender, e);
				this.NoiSoiCheck ();
				return;
			}
			
			private void btCapNhat_Click (object sender, EventArgs e)
			
			{
				int i;
				SqlConnection theSqlConnection;
				SqlCommand theSqlCommand;
				ArrayList theArrayList;
				ArrayList theArrayList2;
				string theString;
				string theString2;
				int i2;
				int i3;
				int i4;
				SqlCommand theSqlCommand2;
				SqlParameter theSqlParameter;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string[] theStringArray;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				string[] theStringArray2;
				SqlDbType[] theSqlDbTypeArray2;
				object[] theObjectArray2;
				i = 0;
				if (! this.CheckInputData ())
				{
					goto L_07E7;
				}
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlCommand = new SqlCommand (string.Concat ("DELETE ScanResult WHERE clrISN=", this._clrISN), theSqlConnection);
				theSqlCommand.Connection.Open ();
				int i5 = theSqlCommand.ExecuteNonQuery ();
				theSqlCommand.Connection.Close ();
				theArrayList = new ArrayList ();
				theArrayList2 = new ArrayList ();
				theString = "";
				theString2 = "";
				i2 = this.lbNoiSoi.Items.Count;
				i3 = 0;
				goto L_00A3;
				
			L_007F:
				
				{
				}
				int i6 = theArrayList.Add (this.lbNoiSoi.Items[i3].ToString ());
				i3++;
				
			L_00A3:
				
				{
				}
				if (i3 < i2)
				{
					goto L_007F;
				}
				i4 = 0;
				goto L_07AB;
				
			L_00B1:
				
				{
				}
				theSqlCommand2 = new SqlCommand ("SELECT * FROM vw_InnerScan WHERE nscNameChild=@nscNameChild or nscNameLevelThree"
				+ " = @nscNameChild", theSqlConnection);
				theSqlParameter = new SqlParameter ("@nscNameChild", SqlDbType.NVarChar);
				theSqlParameter.Value = theArrayList[i4].ToString ();
				SqlParameter theSqlParameter2 = theSqlCommand2.Parameters.Add (theSqlParameter);
				theSqlDataAdapter = new SqlDataAdapter (theSqlCommand2);
				theDataSet = new DataSet ();
				int i7 = theSqlDataAdapter.Fill (theDataSet, "vw_InnerScan");
				theDataTable = theDataSet.Tables["vw_InnerScan"];
				theString2 = theArrayList[i4].ToString ();
				theString2 = theString2.Substring (((int) (theString2.IndexOf ('\u0028') + 1)), 1);
				if (theString2.ToUpper () != "T")
				{
					goto L_015C;
				}
				i = 1;
				goto L_0171;
				
			L_015C:
				
				{
				}
				if (theString2.ToUpper () != "P")
				{
					goto L_0171;
				}
				i = 2;
				
			L_0171:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () == "")
				{
					goto L_0571;
				}
				int i8 = theArrayList2.Add (theDataTable.Rows[0]["nscISNLevelThree"].ToString ());
				if (theDataTable.Rows[0]["Root3"].ToString () != "167")
				{
					goto L_020A;
				}
				if (i != 2)
				{
					goto L_01F9;
				}
				theString = this.txtOngTaiNgoaiP.Text;
				
			L_01F9:
				
				{
				}
				if (i != 1)
				{
					goto L_020A;
				}
				theString = this.txtOngTaiNgoaiT.Text;
				
			L_020A:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "168")
				{
					goto L_0254;
				}
				if (i != 2)
				{
					goto L_0243;
				}
				theString = this.txtMangNhiP.Text;
				
			L_0243:
				
				{
				}
				if (i != 1)
				{
					goto L_0254;
				}
				theString = this.txtMangNhiT.Text;
				
			L_0254:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "170")
				{
					goto L_029E;
				}
				if (i != 2)
				{
					goto L_028D;
				}
				theString = this.txtCuonDuoiP.Text;
				
			L_028D:
				
				{
				}
				if (i != 1)
				{
					goto L_029E;
				}
				theString = this.txtCuonDuoiT.Text;
				
			L_029E:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "169")
				{
					goto L_02E8;
				}
				if (i != 2)
				{
					goto L_02D7;
				}
				theString = this.txtVachNganP.Text;
				
			L_02D7:
				
				{
				}
				if (i != 1)
				{
					goto L_02E8;
				}
				theString = this.txtVachNganT.Text;
				
			L_02E8:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "171")
				{
					goto L_0332;
				}
				if (i != 2)
				{
					goto L_0321;
				}
				theString = this.txtCuonGiuaP.Text;
				
			L_0321:
				
				{
				}
				if (i != 1)
				{
					goto L_0332;
				}
				theString = this.txtCuonGiuaT.Text;
				
			L_0332:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "172")
				{
					goto L_037C;
				}
				if (i != 2)
				{
					goto L_036B;
				}
				theString = this.txtKheGiuaP.Text;
				
			L_036B:
				
				{
				}
				if (i != 1)
				{
					goto L_037C;
				}
				theString = this.txtKheGiuaT.Text;
				
			L_037C:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "173")
				{
					goto L_03C6;
				}
				if (i != 2)
				{
					goto L_03B5;
				}
				theString = this.txtKheTrenP.Text;
				
			L_03B5:
				
				{
				}
				if (i != 1)
				{
					goto L_03C6;
				}
				theString = this.txtKheTrenT.Text;
				
			L_03C6:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "174")
				{
					goto L_0410;
				}
				if (i != 2)
				{
					goto L_03FF;
				}
				theString = this.txtMomMocP.Text;
				
			L_03FF:
				
				{
				}
				if (i != 1)
				{
					goto L_0410;
				}
				theString = this.txtMomMocT.Text;
				
			L_0410:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				SqlConnection theSqlConnection2 = this.db.CreateConnections ();
				if (theString == "")
				{
					goto L_056C;
				}
				theStringArray = new string[8];
				theStringArray[0] = "@clrISN";
				theStringArray[1] = "@nscISN";
				theStringArray[2] = "@nscISNRoot";
				theStringArray[3] = "@srtScanOutList";
				theStringArray[4] = "@srtOpinion";
				theStringArray[5] = "@srtSuggestion";
				theStringArray[6] = "@srtPositionStatus";
				theStringArray[7] = "@srtScanListString";
				theSqlDbTypeArray = new SqlDbType[8];
				theSqlDbTypeArray[0] = SqlDbType.Int;
				theSqlDbTypeArray[1] = SqlDbType.Int;
				theSqlDbTypeArray[2] = SqlDbType.Int;
				theSqlDbTypeArray[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray[6] = SqlDbType.Int;
				theSqlDbTypeArray[7] = SqlDbType.NVarChar;
				theObjectArray = new object[8];
				theObjectArray[0] = this._clrISN;
				theObjectArray[1] = theDataTable.Rows[0]["nscISNLevelThree"].ToString ();
				theObjectArray[2] = theDataTable.Rows[0]["Root3"].ToString ();
				theObjectArray[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray[6] = i;
				theObjectArray[7] = theString;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray, theSqlDbTypeArray, theObjectArray);
				
			L_056C:
				
				{
				}
				goto L_07A5;
				
			L_0571:
				
				{
				}
				int i9 = theArrayList2.Add (theDataTable.Rows[0]["nscISNChild"].ToString ());
				if (theDataTable.Rows[0]["nscISN"].ToString () != "85")
				{
					goto L_05CA;
				}
				theString = this.txtHaHong.Text;
				
			L_05CA:
				
				{
				}
				if (theDataTable.Rows[0]["nscISN"].ToString () != "3")
				{
					goto L_0614;
				}
				if (i != 2)
				{
					goto L_0603;
				}
				theString = this.txtVomHongP.Text;
				
			L_0603:
				
				{
				}
				if (i != 1)
				{
					goto L_0614;
				}
				theString = this.txtVomHongT.Text;
				
			L_0614:
				
				{
				}
				if (theDataTable.Rows[0]["nscISN"].ToString () != "4")
				{
					goto L_0649;
				}
				theString = this.txtThanhQuan.Text;
				
			L_0649:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				SqlConnection theSqlConnection3 = this.db.CreateConnections ();
				if (theString == "")
				{
					goto L_07A5;
				}
				theStringArray2 = new string[8];
				theStringArray2[0] = "@clrISN";
				theStringArray2[1] = "@nscISN";
				theStringArray2[2] = "@nscISNRoot";
				theStringArray2[3] = "@srtScanOutList";
				theStringArray2[4] = "@srtOpinion";
				theStringArray2[5] = "@srtSuggestion";
				theStringArray2[6] = "@srtPositionStatus";
				theStringArray2[7] = "@srtScanListString";
				theSqlDbTypeArray2 = new SqlDbType[8];
				theSqlDbTypeArray2[0] = SqlDbType.Int;
				theSqlDbTypeArray2[1] = SqlDbType.Int;
				theSqlDbTypeArray2[2] = SqlDbType.Int;
				theSqlDbTypeArray2[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[6] = SqlDbType.Int;
				theSqlDbTypeArray2[7] = SqlDbType.NVarChar;
				theObjectArray2 = new object[8];
				theObjectArray2[0] = this._clrISN;
				theObjectArray2[1] = theDataTable.Rows[0]["nscISNChild"].ToString ();
				theObjectArray2[2] = theDataTable.Rows[0]["nscISN"].ToString ();
				theObjectArray2[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray2[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray2[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray2[6] = i;
				theObjectArray2[7] = theString;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray2, theSqlDbTypeArray2, theObjectArray2);
				
			L_07A5:
				
				{
				}
				i4++;
				
			L_07AB:
				
				{
				}
				if (i4 < theArrayList.Count)
				{
					goto L_00B1;
				}
				DialogResult theDialogResult = MessageBox.Show ("N?i soi ?? ???c l?u", "C?p Nh?t N?i Soi", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				this.NoiSoiNgoaiDS ();
				theArrayList.Clear ();
				theArrayList2.Clear ();
				i2 = 0;
				theSqlConnection.Close ();
				
			L_07E7:
				return;
			}
			
			private void btHinhAnh_Click (object sender, EventArgs e)
			
			{
				frmCapNhatAnh theFrmCapNhatAnh;
				theFrmCapNhatAnh = new frmCapNhatAnh (this._clrISN, this._NgayKham);
				theFrmCapNhatAnh.ShowInTaskbar = false;
				DialogResult theDialogResult = theFrmCapNhatAnh.ShowDialog ();
				return;
			}
			
			private void btIn_Click (object sender, EventArgs e)
			
			{
				Word.ApplicationClass theApplicationClass;
				object theObject;
				object theObject2;
				object theObject3;
				object theObject4;
				object theObject5;
				object theObject6;
				object theObject7;
				Exception theException;
				Word.Document theDocument;
				Word.Document theDocument2;
				SqlConnection theSqlConnection;
				SqlCommand theSqlCommand;
				SqlParameter theSqlParameter;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				string theString;
				int i;
				SqlConnection theSqlConnection2;
				SqlCommand theSqlCommand2;
				SqlParameter theSqlParameter2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				int i2;
				Word.Range theRange;
				string theString2;
				string theString3;
				string theString4;
				string theString5;
				string theString6;
				string theString7;
				string theString8;
				string theString9;
				string theString10;
				string theString11;
				string theString12;
				string theString13;
				string theString14;
				string theString15;
				string theString16;
				string theString17;
				string theString18;
				string theString19;
				string theString20;
				string theString21;
				string theString22;
				string theString23;
				string theString24;
				string theString25;
				string theString26;
				string theString27;
				string theString28;
				string theString29;
				string theString30;
				string theString31;
				string theString32;
				string theString33;
				int i3;
				byte[] theByteArray;
				MemoryStream theMemoryStream;
				Image theImage;
				object theObject8;
				object theObject9;
				string theString34;
				object theObject10;
				Image.GetThumbnailImageAbort theGetThumbnailImageAbort;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				Word.InlineShape theInlineShape;
				string theString35;
				string theString36;
				string theString37;
				string theString38;
				string theString39;
				int i4;
				string[] theStringArray;
				string[] theStringArray2;
				string[] theStringArray3;
				object[] theObjectArray;
				theApplicationClass = new Word.ApplicationClass ();
				theObject = Type.Missing;
				theObject2 = false;
				theObject3 = true;
				theObject4 = 1;
				theObject5 = Word.WdFontBias.wdFontBiasDefault;
				theObject6 = "Wingdings";
				
			L_0031:
				try
				{
					theObject7 = string.Concat (Application.StartupPath, "/PhieuketquaNoisoi02.doc");
				}
				catch (Exception theException2)
				{
					
				L_0044:
					theException = theException2;
					DialogResult theDialogResult = MessageBox.Show (theException.ToString (), "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
					goto L_2EAF;
				}
				
			L_0060:
				
				{
				}
				theDocument = theApplicationClass.Documents.Open (ref theObject7, ref theObject, ref theObject, ref theObject, ref theObject, ref theObject, ref theObject, ref theObject, ref theObject, ref theObject, 
				ref theObject, ref theObject);
				theDocument2 = theApplicationClass.Documents.Add (ref theObject, ref theObject, ref theObject, ref theObject);
				theDocument.Select ();
				theApplicationClass.Selection.Copy ();
				theDocument2.Select ();
				theApplicationClass.Selection.PasteSpecial (ref theObject, ref theObject2, ref theObject, ref theObject2, ref theObject4, ref theObject, ref theObject);
				theDocument.Close (ref theObject2, ref theObject, ref theObject);
				theApplicationClass.Visible = true;
				theApplicationClass.Activate ();
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlCommand = new SqlCommand ("Select sckName from vw_ClinicalSicks Where clrISN  = @clrISN ", theSqlConnection);
				theSqlParameter = new SqlParameter ("@clrISN", SqlDbType.Int);
				theSqlParameter.Value = this._clrISN;
				SqlParameter theSqlParameter3 = theSqlCommand.Parameters.Add (theSqlParameter);
				theSqlDataAdapter = new SqlDataAdapter (theSqlCommand);
				theDataSet = new DataSet ();
				int i5 = theSqlDataAdapter.Fill (theDataSet, "vw_ClinicalSick");
				theString = "";
				i = 0;
				goto L_01CB;
				
			L_0155:
				
				{
				}
				if (theString != "")
				{
					goto L_018F;
				}
				theString = theDataSet.Tables[0].Rows[i]["sckName"].ToString ();
				goto L_01C5;
				
			L_018F:
				
				{
				}
				theString = string.Concat (theString, ",", theDataSet.Tables[0].Rows[i]["sckName"].ToString ());
				
			L_01C5:
				
				{
				}
				i++;
				
			L_01CB:
				
				{
				}
				if (i < theDataSet.Tables[0].Rows.Count)
				{
					goto L_0155;
				}
				theSqlConnection2 = new SqlConnection (this.connStr);
				theSqlCommand2 = new SqlCommand ("SELECT patID, patName,patAge,patSex,patAddress, empName, Day(clrExaminationDate)"
				+ " as Ngay , Month(clrExaminationDate) as Thang, Year(clrExaminationDate) as Nam ,"
				+ " clrPathologicalSigns  FROM  dbo.vw_ClinicalRecord Where clrISN  = @clrISN ", theSqlConnection2);
				theSqlParameter2 = new SqlParameter ("@clrISN", SqlDbType.Int);
				theSqlParameter2.Value = this._clrISN;
				SqlParameter theSqlParameter4 = theSqlCommand2.Parameters.Add (theSqlParameter2);
				theSqlDataAdapter2 = new SqlDataAdapter (theSqlCommand2);
				theDataSet2 = new DataSet ();
				int i6 = theSqlDataAdapter2.Fill (theDataSet2, "vw_ClinicalRecord");
				i2 = 0;
				theRange = theDocument2.Sentences.Item (11).Characters.Item (1);
				theRange.Text = this.tbHoTen.Text.Replace (".", "");
				theRange = theDocument2.Sentences.Item (13).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["patAge"].ToString ().Replace (".", "");
				theRange = theDocument2.Sentences.Item (15).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["patSex"].ToString ().Replace (".", "");
				theRange = theDocument2.Sentences.Item (18).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["patAddress"].ToString ().Replace (".", "");
				theRange = theDocument2.Sentences.Item (20).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["patID"].ToString ().Replace (".", "");
				theRange = theDocument2.Sentences.Item (23).Characters.Item (1);
				theRange.Text = theString.Replace (".", "");
				theRange = theDocument2.Sentences.Item (26).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["clrPathologicalSigns"].ToString ().Replace (".", "");
				theRange = theDocument2.Sentences.Item (28).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["empName"].ToString ().ToUpper ().Replace (".", "");
				theString2 = "";
				if (theDataSet2.Tables[0].Rows[0]["Ngay"].ToString ().Length >= 2)
				{
					goto L_053E;
				}
				theString2 = string.Concat ("0", theDataSet2.Tables[0].Rows[0]["Ngay"].ToString ());
				goto L_0567;
				
			L_053E:
				
				{
				}
				theString2 = theDataSet2.Tables[0].Rows[0]["Ngay"].ToString ();
				
			L_0567:
				
				{
				}
				theString3 = "";
				if (theDataSet2.Tables[0].Rows[0]["Thang"].ToString ().Length >= 2)
				{
					goto L_05D2;
				}
				theString3 = string.Concat ("0", theDataSet2.Tables[0].Rows[0]["Thang"].ToString ());
				goto L_05FB;
				
			L_05D2:
				
				{
				}
				theString3 = theDataSet2.Tables[0].Rows[0]["Thang"].ToString ();
				
			L_05FB:
				
				{
				}
				theRange = theDocument2.Sentences.Item (101).Characters.Item (1);
				theStringArray = new string[5];
				theStringArray[0] = theString2;
				theStringArray[1] = "/";
				theStringArray[2] = theString3;
				theStringArray[3] = "/";
				theStringArray[4] = theDataSet2.Tables[0].Rows[0]["Nam"].ToString ();
				theRange.Text = string.Concat (theStringArray);
				theRange = theDocument2.Sentences.Item (103).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["empName"].ToString ().ToUpper ().Replace (".", "");
				theDataSet2.Dispose ();
				theSqlCommand2 = new SqlCommand (string.Concat ("SELECT * FROM vw_ScanResult_InnerScan Where clrISN = ", this._clrISN.ToString (), " order by nscISNRoot,srtPositionStatus"), theSqlConnection2);
				theSqlDataAdapter2 = new SqlDataAdapter (theSqlCommand2);
				theDataSet2 = new DataSet ();
				int i7 = theSqlDataAdapter2.Fill (theDataSet2, "vw_ClinicalRecord");
				theString4 = "";
				theString5 = "";
				theString6 = "";
				theString7 = "";
				theString8 = "";
				theString9 = "";
				theString10 = "";
				theString11 = "";
				theString12 = "";
				theString13 = "";
				theString14 = "";
				theString15 = "";
				theString16 = "";
				theString17 = "";
				theString18 = "";
				theString19 = "";
				theString20 = "";
				theString21 = "";
				theString22 = "";
				theString23 = "";
				theString24 = "";
				theString25 = "";
				theString26 = "";
				theString27 = "";
				theString28 = "";
				theString29 = "";
				theString30 = "";
				theString31 = "";
				theString32 = "";
				theString33 = "";
				i3 = 0;
				goto L_1E66;
				
			L_07F5:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "167")
				{
					goto L_0A34;
				}
				theString30 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString30 != "1")
				{
					goto L_0945;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_090D;
				}
				if (theString12 != "")
				{
					goto L_08D5;
				}
				theString12 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_090B;
				
			L_08D5:
				
				{
				}
				theString12 = string.Concat (theString12, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_090B:
				
				{
				}
				goto L_0945;
				
			L_090D:
				
				{
				}
				if (theString12 != "")
				{
					goto L_0945;
				}
				theString12 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_0945:
				
				{
				}
				if (theString30 != "2")
				{
					goto L_0A34;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_09FC;
				}
				if (theString20 != "")
				{
					goto L_09C4;
				}
				theString20 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_09FA;
				
			L_09C4:
				
				{
				}
				theString20 = string.Concat (theString20, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_09FA:
				
				{
				}
				goto L_0A34;
				
			L_09FC:
				
				{
				}
				if (theString20 != "")
				{
					goto L_0A34;
				}
				theString20 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_0A34:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "168")
				{
					goto L_0C73;
				}
				theString31 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString31 != "1")
				{
					goto L_0B84;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_0B4C;
				}
				if (theString13 != "")
				{
					goto L_0B14;
				}
				theString13 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_0B4A;
				
			L_0B14:
				
				{
				}
				theString13 = string.Concat (theString13, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_0B4A:
				
				{
				}
				goto L_0B84;
				
			L_0B4C:
				
				{
				}
				if (theString13 != "")
				{
					goto L_0B84;
				}
				theString13 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_0B84:
				
				{
				}
				if (theString31 != "2")
				{
					goto L_0C73;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_0C3B;
				}
				if (theString21 != "")
				{
					goto L_0C03;
				}
				theString21 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_0C39;
				
			L_0C03:
				
				{
				}
				theString21 = string.Concat (theString21, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_0C39:
				
				{
				}
				goto L_0C73;
				
			L_0C3B:
				
				{
				}
				if (theString21 != "")
				{
					goto L_0C73;
				}
				theString21 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_0C73:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "169")
				{
					goto L_0EB2;
				}
				theString24 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString24 != "1")
				{
					goto L_0DC3;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_0D8B;
				}
				if (theString4 != "")
				{
					goto L_0D53;
				}
				theString4 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_0D89;
				
			L_0D53:
				
				{
				}
				theString4 = string.Concat (theString4, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_0D89:
				
				{
				}
				goto L_0DC3;
				
			L_0D8B:
				
				{
				}
				if (theString4 != "")
				{
					goto L_0DC3;
				}
				theString4 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_0DC3:
				
				{
				}
				if (theString24 != "2")
				{
					goto L_0EB2;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_0E7A;
				}
				if (theString14 != "")
				{
					goto L_0E42;
				}
				theString14 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_0E78;
				
			L_0E42:
				
				{
				}
				theString14 = string.Concat (theString14, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_0E78:
				
				{
				}
				goto L_0EB2;
				
			L_0E7A:
				
				{
				}
				if (theString14 != "")
				{
					goto L_0EB2;
				}
				theString14 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_0EB2:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "170")
				{
					goto L_10FB;
				}
				theString25 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString25.ToUpper () != "1")
				{
					goto L_1007;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_0FCF;
				}
				if (theString5 != "")
				{
					goto L_0F97;
				}
				theString5 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_0FCD;
				
			L_0F97:
				
				{
				}
				theString5 = string.Concat (theString5, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_0FCD:
				
				{
				}
				goto L_1007;
				
			L_0FCF:
				
				{
				}
				if (theString5 != "")
				{
					goto L_1007;
				}
				theString5 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_1007:
				
				{
				}
				if (theString25.ToUpper () != "2")
				{
					goto L_10FB;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_10C3;
				}
				if (theString15 != "")
				{
					goto L_108B;
				}
				theString15 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_10C1;
				
			L_108B:
				
				{
				}
				theString15 = string.Concat (theString15, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_10C1:
				
				{
				}
				goto L_10FB;
				
			L_10C3:
				
				{
				}
				if (theString15 != "")
				{
					goto L_10FB;
				}
				theString15 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_10FB:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "171")
				{
					goto L_133A;
				}
				theString26 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString26 != "1")
				{
					goto L_124B;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1213;
				}
				if (theString6 != "")
				{
					goto L_11DB;
				}
				theString6 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_1211;
				
			L_11DB:
				
				{
				}
				theString6 = string.Concat (theString6, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_1211:
				
				{
				}
				goto L_124B;
				
			L_1213:
				
				{
				}
				if (theString6 != "")
				{
					goto L_124B;
				}
				theString6 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_124B:
				
				{
				}
				if (theString26 != "2")
				{
					goto L_133A;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1302;
				}
				if (theString16 != "")
				{
					goto L_12CA;
				}
				theString16 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_1300;
				
			L_12CA:
				
				{
				}
				theString16 = string.Concat (theString16, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_1300:
				
				{
				}
				goto L_133A;
				
			L_1302:
				
				{
				}
				if (theString16 != "")
				{
					goto L_133A;
				}
				theString16 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_133A:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "172")
				{
					goto L_1579;
				}
				theString28 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString28 != "1")
				{
					goto L_148A;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1452;
				}
				if (theString8 != "")
				{
					goto L_141A;
				}
				theString8 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_1450;
				
			L_141A:
				
				{
				}
				theString8 = string.Concat (theString8, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_1450:
				
				{
				}
				goto L_148A;
				
			L_1452:
				
				{
				}
				if (theString8 != "")
				{
					goto L_148A;
				}
				theString8 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_148A:
				
				{
				}
				if (theString28 != "2")
				{
					goto L_1579;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1541;
				}
				if (theString18 != "")
				{
					goto L_1509;
				}
				theString18 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_153F;
				
			L_1509:
				
				{
				}
				theString18 = string.Concat (theString18, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_153F:
				
				{
				}
				goto L_1579;
				
			L_1541:
				
				{
				}
				if (theString18 != "")
				{
					goto L_1579;
				}
				theString18 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_1579:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "173")
				{
					goto L_17B8;
				}
				theString27 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString27 != "1")
				{
					goto L_16C9;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1691;
				}
				if (theString7 != "")
				{
					goto L_1659;
				}
				theString7 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_168F;
				
			L_1659:
				
				{
				}
				theString7 = string.Concat (theString7, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_168F:
				
				{
				}
				goto L_16C9;
				
			L_1691:
				
				{
				}
				if (theString7 != "")
				{
					goto L_16C9;
				}
				theString7 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_16C9:
				
				{
				}
				if (theString27 != "2")
				{
					goto L_17B8;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1780;
				}
				if (theString17 != "")
				{
					goto L_1748;
				}
				theString17 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_177E;
				
			L_1748:
				
				{
				}
				theString17 = string.Concat (theString17, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_177E:
				
				{
				}
				goto L_17B8;
				
			L_1780:
				
				{
				}
				if (theString17 != "")
				{
					goto L_17B8;
				}
				theString17 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_17B8:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "174")
				{
					goto L_19F7;
				}
				theString29 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString29 != "1")
				{
					goto L_1908;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_18D0;
				}
				if (theString9 != "")
				{
					goto L_1898;
				}
				theString9 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_18CE;
				
			L_1898:
				
				{
				}
				theString9 = string.Concat (theString9, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_18CE:
				
				{
				}
				goto L_1908;
				
			L_18D0:
				
				{
				}
				if (theString9 != "")
				{
					goto L_1908;
				}
				theString9 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_1908:
				
				{
				}
				if (theString29 != "2")
				{
					goto L_19F7;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_19BF;
				}
				if (theString19 != "")
				{
					goto L_1987;
				}
				theString19 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_19BD;
				
			L_1987:
				
				{
				}
				theString19 = string.Concat (theString19, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_19BD:
				
				{
				}
				goto L_19F7;
				
			L_19BF:
				
				{
				}
				if (theString19 != "")
				{
					goto L_19F7;
				}
				theString19 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_19F7:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "3")
				{
					goto L_1C36;
				}
				theString32 = theDataSet2.Tables[0].Rows[i3]["srtPositionStatus"].ToString ();
				if (theString32 != "1")
				{
					goto L_1B47;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1B0F;
				}
				if (theString23 != "")
				{
					goto L_1AD7;
				}
				theString23 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_1B0D;
				
			L_1AD7:
				
				{
				}
				theString23 = string.Concat (theString23, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_1B0D:
				
				{
				}
				goto L_1B47;
				
			L_1B0F:
				
				{
				}
				if (theString23 != "")
				{
					goto L_1B47;
				}
				theString23 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_1B47:
				
				{
				}
				if (theString32 != "2")
				{
					goto L_1C36;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1BFE;
				}
				if (theString22 != "")
				{
					goto L_1BC6;
				}
				theString22 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_1BFC;
				
			L_1BC6:
				
				{
				}
				theString22 = string.Concat (theString22, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_1BFC:
				
				{
				}
				goto L_1C36;
				
			L_1BFE:
				
				{
				}
				if (theString22 != "")
				{
					goto L_1C36;
				}
				theString22 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_1C36:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "85")
				{
					goto L_1D4B;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1D13;
				}
				if (theString10 != "")
				{
					goto L_1CDB;
				}
				theString10 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_1D11;
				
			L_1CDB:
				
				{
				}
				theString10 = string.Concat (theString10, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_1D11:
				
				{
				}
				goto L_1D4B;
				
			L_1D13:
				
				{
				}
				if (theString10 != "")
				{
					goto L_1D4B;
				}
				theString10 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_1D4B:
				
				{
				}
				if (theDataSet2.Tables[0].Rows[i3]["nscISNRoot"].ToString () != "4")
				{
					goto L_1E60;
				}
				if (theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString () != "")
				{
					goto L_1E28;
				}
				if (theString11 != "")
				{
					goto L_1DF0;
				}
				theString11 = theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ();
				goto L_1E26;
				
			L_1DF0:
				
				{
				}
				theString11 = string.Concat (theString11, ",", theDataSet2.Tables[0].Rows[i3]["nscName"].ToString ());
				
			L_1E26:
				
				{
				}
				goto L_1E60;
				
			L_1E28:
				
				{
				}
				if (theString11 != "")
				{
					goto L_1E60;
				}
				theString11 = theDataSet2.Tables[0].Rows[i3]["srtScanListString"].ToString ();
				
			L_1E60:
				
				{
				}
				i3++;
				
			L_1E66:
				
				{
				}
				if (i3 < theDataSet2.Tables[0].Rows.Count)
				{
					goto L_07F5;
				}
				if (theString20 != "")
				{
					goto L_1EC2;
				}
				theString20 = "s?ch kh?";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 34))).Characters.Item (1);
				theRange.Text = theString20;
				goto L_1EFD;
				
			L_1EC2:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 34))).Characters.Item (1);
				theRange.Text = theString20.ToUpper ().Replace (".", "");
				
			L_1EFD:
				
				{
				}
				if (theString12 != "")
				{
					goto L_1F3B;
				}
				theString12 = "s?ch kh?";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 37))).Characters.Item (1);
				theRange.Text = theString12;
				goto L_1F76;
				
			L_1F3B:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 37))).Characters.Item (1);
				theRange.Text = theString12.ToUpper ().Replace (".", "");
				
			L_1F76:
				
				{
				}
				if (theString21 != "")
				{
					goto L_1FB4;
				}
				theString21 = "B?nh th??ng, valsava +";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 38))).Characters.Item (1);
				theRange.Text = theString21;
				goto L_1FEF;
				
			L_1FB4:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 38))).Characters.Item (1);
				theRange.Text = theString21.ToUpper ().Replace (".", "");
				
			L_1FEF:
				
				{
				}
				if (theString13 != "")
				{
					goto L_202D;
				}
				theString13 = "B?nh th??ng, valsava +";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 41))).Characters.Item (1);
				theRange.Text = theString13;
				goto L_2068;
				
			L_202D:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 41))).Characters.Item (1);
				theRange.Text = theString13.ToUpper ().Replace (".", "");
				
			L_2068:
				
				{
				}
				if (theString14 != "")
				{
					goto L_20A6;
				}
				theString14 = "th?ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 42))).Characters.Item (1);
				theRange.Text = theString14;
				goto L_20E1;
				
			L_20A6:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 42))).Characters.Item (1);
				theRange.Text = theString14.ToUpper ().Replace (".", "");
				
			L_20E1:
				
				{
				}
				if (theString4 != "")
				{
					goto L_211F;
				}
				theString4 = "th?ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 45))).Characters.Item (1);
				theRange.Text = theString4;
				goto L_215A;
				
			L_211F:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 45))).Characters.Item (1);
				theRange.Text = theString4.ToUpper ().Replace (".", "");
				
			L_215A:
				
				{
				}
				if (theString15 != "")
				{
					goto L_2198;
				}
				theString15 = "B?nh th??ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 46))).Characters.Item (1);
				theRange.Text = theString15;
				goto L_21D3;
				
			L_2198:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 46))).Characters.Item (1);
				theRange.Text = theString15.ToUpper ().Replace (".", "");
				
			L_21D3:
				
				{
				}
				if (theString5 != "")
				{
					goto L_2211;
				}
				theString5 = "B?nh th??ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 49))).Characters.Item (1);
				theRange.Text = theString5;
				goto L_224C;
				
			L_2211:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 49))).Characters.Item (1);
				theRange.Text = theString5.ToUpper ().Replace (".", "");
				
			L_224C:
				
				{
				}
				if (theString16 != "")
				{
					goto L_22A9;
				}
				if (theString18 != "")
				{
					goto L_22A9;
				}
				if (theString19 != "")
				{
					goto L_22A9;
				}
				theString16 = "Th?ng tho?ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 50))).Characters.Item (1);
				theRange.Text = theString16;
				goto L_23D3;
				
			L_22A9:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 50))).Characters.Item (1);
				theStringArray2 = new string[5];
				theStringArray2[0] = theString19.ToUpper ().Replace (".", "");
				theStringArray2[1] = ",";
				theStringArray2[2] = theString16.ToUpper ().Replace (".", "");
				theStringArray2[3] = ",";
				theStringArray2[4] = theString18.ToUpper ().Replace (".", "");
				theString33 = string.Concat (theStringArray2);
				theString33 = theString33.Trim ();
				theString33 = theString33.Replace (",,", ",");
				if (! theString33.EndsWith (","))
				{
					goto L_2375;
				}
				theString33 = theString33.Substring (0, ((int) (theString33.Length - 1)));
				
			L_2375:
				
				{
				}
				if (! theString33.StartsWith (","))
				{
					goto L_2396;
				}
				theString33 = theString33.Substring (1, ((int) (theString33.Length - 1)));
				
			L_2396:
				
				{
				}
				if (! theString33.StartsWith (","))
				{
					goto L_23C5;
				}
				if (! theString33.EndsWith (","))
				{
					goto L_23C5;
				}
				theString33 = theString33.Substring (2, ((int) (theString33.Length - 1)));
				
			L_23C5:
				
				{
				}
				theRange.Text = theString33.ToUpper ();
				
			L_23D3:
				
				{
				}
				if (theString6 != "")
				{
					goto L_2430;
				}
				if (theString8 != "")
				{
					goto L_2430;
				}
				if (theString9 != "")
				{
					goto L_2430;
				}
				theString6 = "Th?ng tho?ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 53))).Characters.Item (1);
				theRange.Text = theString6;
				goto L_2555;
				
			L_2430:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 53))).Characters.Item (1);
				theStringArray3 = new string[5];
				theStringArray3[0] = theString9.ToUpper ().Replace (".", "");
				theStringArray3[1] = ",";
				theStringArray3[2] = theString6.ToUpper ().Replace (".", "");
				theStringArray3[3] = ",";
				theStringArray3[4] = theString8.ToUpper ().Replace (".", "");
				theString33 = string.Concat (theStringArray3);
				theString33 = theString33.Trim ();
				theString33 = theString33.Replace (",,", ",");
				if (! theString33.EndsWith (","))
				{
					goto L_24FC;
				}
				theString33 = theString33.Substring (0, ((int) (theString33.Length - 1)));
				
			L_24FC:
				
				{
				}
				if (! theString33.StartsWith (","))
				{
					goto L_251D;
				}
				theString33 = theString33.Substring (1, ((int) (theString33.Length - 1)));
				
			L_251D:
				
				{
				}
				if (! theString33.StartsWith (","))
				{
					goto L_254C;
				}
				if (! theString33.EndsWith (","))
				{
					goto L_254C;
				}
				theString33 = theString33.Substring (2, ((int) (theString33.Length - 1)));
				
			L_254C:
				
				{
				}
				theRange.Text = theString33;
				
			L_2555:
				
				{
				}
				if (theString17 != "")
				{
					goto L_2593;
				}
				theString17 = "Th?ng tho?ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 54))).Characters.Item (1);
				theRange.Text = theString17;
				goto L_25CE;
				
			L_2593:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 54))).Characters.Item (1);
				theRange.Text = theString17.ToUpper ().Replace (".", "");
				
			L_25CE:
				
				{
				}
				if (theString7 != "")
				{
					goto L_260C;
				}
				theString7 = "Th?ng tho?ng";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 57))).Characters.Item (1);
				theRange.Text = theString7;
				goto L_2647;
				
			L_260C:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 57))).Characters.Item (1);
				theRange.Text = theString7.ToUpper ().Replace (".", "");
				
			L_2647:
				
				{
				}
				if (theString22 != "")
				{
					goto L_2685;
				}
				theString22 = "g? v?i di ??ng t?t, loa v?i tho?ng, kh?ng u, h? Rosenmuller tr?ng ";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 58))).Characters.Item (1);
				theRange.Text = theString22;
				goto L_26C0;
				
			L_2685:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 58))).Characters.Item (1);
				theRange.Text = theString22.ToUpper ().Replace (".", "");
				
			L_26C0:
				
				{
				}
				if (theString23 != "")
				{
					goto L_26FE;
				}
				theString23 = "g? v?i di ??ng t?t, loa v?i tho?ng, kh?ng u, h? Rosenmuller tr?ng ";
				theRange = theDocument2.Sentences.Item (((int) (i2 + 61))).Characters.Item (1);
				theRange.Text = theString23;
				goto L_2739;
				
			L_26FE:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 61))).Characters.Item (1);
				theRange.Text = theString23.ToUpper ().Replace (".", "");
				
			L_2739:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 63))).Characters.Item (1);
				if (theString10 != "")
				{
					goto L_2777;
				}
				theString10 = "s?ch, th?ng tho?ng";
				theRange.Text = theString10;
				goto L_2794;
				
			L_2777:
				
				{
				}
				theRange.Text = theString10.ToUpper ().Replace (".", "");
				
			L_2794:
				
				{
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 65))).Characters.Item (1);
				if (theString11 != "")
				{
					goto L_27D2;
				}
				theString11 = "Thung l?ng thanh m?n, xoang l? tr?ng, s?n ph?u, d?y thanh di ??ng t?t, kh?ng u";
				theRange.Text = theString11;
				goto L_27EF;
				
			L_27D2:
				
				{
				}
				theRange.Text = theString11.ToUpper ().Replace (".", "");
				
			L_27EF:
				
				{
				}
				if (theDataSet2.Tables[0].Rows.Count <= 0)
				{
					goto L_28CC;
				}
				theRange = theDocument2.Sentences.Item (((int) (i2 + 67))).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["srtOpinion"].ToString ().ToUpper ().Replace (".", "");
				theRange = theDocument2.Sentences.Item (((int) (i2 + 69))).Characters.Item (1);
				theRange.Text = theDataSet2.Tables[0].Rows[0]["srtSuggestion"].ToString ().ToUpper ().Replace (".", "");
				
			L_28CC:
				
				{
				}
				theObject8 = new object ();
				theObject9 = new object ();
				theObject10 = Missing.Value;
				theGetThumbnailImageAbort = new Image.GetThumbnailImageAbort (this.ThumbnailCallback);
				theSqlDataAdapter3 = new SqlDataAdapter (string.Concat ("SELECT top 5 * FROM ScanPicture WHERE clrISN=", this._clrISN), theSqlConnection2);
				theDataSet3 = new DataSet ();
				int i8 = theSqlDataAdapter3.Fill (theDataSet3, "ScanPicture");
				if (theDataSet3 == null)
				{
					goto L_2EAF;
				}
				
			L_2927:
				
				{
				}
				if (! File.Exists (this.ImagePath.Replace ("/", "\\")))
				{
					goto L_295E;
				}
				FileStream theFileStream = File.Create (this.ImagePath.Replace ("/", "\\"));
				
			L_295E:
				
				{
				}
				theString35 = "";
				theString36 = "";
				theString37 = "";
				theString38 = "";
				theString39 = "";
				i4 = 0;
				goto L_2E83;
				
			L_2989:
				
				{
				}
				theObjectArray = new object[6];
				theObjectArray[0] = this.ImagePath;
				theObjectArray[1] = "/I";
				theObjectArray[2] = theDataSet3.Tables[0].Rows[i4]["scpISN"];
				theObjectArray[3] = "C";
				theObjectArray[4] = theDataSet3.Tables[0].Rows[i4]["clrISN"];
				theObjectArray[5] = ".jpg";
				theString34 = string.Concat (theObjectArray);
				if (File.Exists (theString34))
				{
					goto L_2A69;
				}
				theByteArray = ((byte[]) theDataSet3.Tables[0].Rows[i4]["scpImage"]);
				theMemoryStream = new MemoryStream (theByteArray);
				theImage = Image.FromStream (((Stream) theMemoryStream));
				theImage.Save (theString34);
				theMemoryStream.Close ();
				theMemoryStream.Flush ();
				
			L_2A69:
				
				{
				}
				if (i4 != 0)
				{
					goto L_2B3A;
				}
				theString35 = theString34;
				theInlineShape = theApplicationClass.ActiveDocument.InlineShapes.New (theDocument2.Sentences.Item (((int) (i2 + 71))).Characters.Item (1));
				theInlineShape.Height = 150F;
				theInlineShape.Width = 200F;
				theInlineShape.Borders.OutsideColor = Word.WdColor.wdColorWhite;
				theInlineShape.Fill.UserPicture (theString35);
				theRange = theDocument2.Sentences.Item (((int) (i2 + 77))).Characters.Item (1);
				theRange.Text = theDataSet3.Tables[0].Rows[i4]["scpNote"].ToString ().Replace (".", "");
				goto L_2E7D;
				
			L_2B3A:
				
				{
				}
				if (i4 != 1)
				{
					goto L_2C0C;
				}
				theString36 = theString34;
				theInlineShape = theApplicationClass.ActiveDocument.InlineShapes.New (theDocument2.Sentences.Item (((int) (i2 + 73))).Characters.Item (1));
				theInlineShape.Height = 150F;
				theInlineShape.Width = 200F;
				theInlineShape.Borders.OutsideColor = Word.WdColor.wdColorWhite;
				theInlineShape.Fill.UserPicture (theString36);
				theRange = theDocument2.Sentences.Item (((int) (i2 + 79))).Characters.Item (1);
				theRange.Text = theDataSet3.Tables[0].Rows[i4]["scpNote"].ToString ().Replace (".", "");
				goto L_2E7D;
				
			L_2C0C:
				
				{
				}
				if (i4 != 2)
				{
					goto L_2CDE;
				}
				theString37 = theString34;
				theInlineShape = theApplicationClass.ActiveDocument.InlineShapes.New (theDocument2.Sentences.Item (((int) (i2 + 75))).Characters.Item (1));
				theInlineShape.Height = 150F;
				theInlineShape.Width = 200F;
				theInlineShape.Borders.OutsideColor = Word.WdColor.wdColorWhite;
				theInlineShape.Fill.UserPicture (theString37);
				theRange = theDocument2.Sentences.Item (((int) (i2 + 81))).Characters.Item (1);
				theRange.Text = theDataSet3.Tables[0].Rows[i4]["scpNote"].ToString ().Replace (".", "");
				goto L_2E7D;
				
			L_2CDE:
				
				{
				}
				if (i4 != 3)
				{
					goto L_2DB0;
				}
				theString38 = theString34;
				theInlineShape = theApplicationClass.ActiveDocument.InlineShapes.New (theDocument2.Sentences.Item (((int) (i2 + 88))).Characters.Item (1));
				theInlineShape.Height = 150F;
				theInlineShape.Width = 200F;
				theInlineShape.Borders.OutsideColor = Word.WdColor.wdColorWhite;
				theInlineShape.Fill.UserPicture (theString38);
				theRange = theDocument2.Sentences.Item (((int) (i2 + 92))).Characters.Item (1);
				theRange.Text = theDataSet3.Tables[0].Rows[i4]["scpNote"].ToString ().Replace (".", "");
				goto L_2E7D;
				
			L_2DB0:
				
				{
				}
				if (i4 != 4)
				{
					goto L_2E7D;
				}
				theString39 = theString34;
				theInlineShape = theApplicationClass.ActiveDocument.InlineShapes.New (theDocument2.Sentences.Item (((int) (i2 + 90))).Characters.Item (1));
				theInlineShape.Height = 150F;
				theInlineShape.Width = 200F;
				theInlineShape.Borders.OutsideColor = Word.WdColor.wdColorWhite;
				theInlineShape.Fill.UserPicture (theString39);
				theRange = theDocument2.Sentences.Item (((int) (i2 + 94))).Characters.Item (1);
				theRange.Text = theDataSet3.Tables[0].Rows[i4]["scpNote"].ToString ().Replace (".", "");
				
			L_2E7D:
				
				{
				}
				i4++;
				
			L_2E83:
				
				{
				}
				if (i4 < theDataSet3.Tables[0].Rows.Count)
				{
					goto L_2989;
				}
				theSqlDataAdapter3.Dispose ();
				theSqlConnection2.Close ();
				
			L_2EAF:
				return;
			}
			
			private void btLuu_Click (object sender, EventArgs e)
			
			{
				int i;
				SqlConnection theSqlConnection;
				ArrayList theArrayList;
				ArrayList theArrayList2;
				int i2;
				string theString;
				string theString2;
				int i3;
				int i4;
				SqlCommand theSqlCommand;
				SqlParameter theSqlParameter;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string[] theStringArray;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				string[] theStringArray2;
				SqlDbType[] theSqlDbTypeArray2;
				object[] theObjectArray2;
				i = 2;
				if (! this.CheckInputData ())
				{
					goto L_07C7;
				}
				theSqlConnection = new SqlConnection (this.connStr);
				theArrayList = new ArrayList ();
				theArrayList2 = new ArrayList ();
				i2 = this.lbNoiSoi.Items.Count;
				theString = "";
				theString2 = "";
				i3 = 0;
				goto L_006E;
				
			L_004A:
				
				{
				}
				int i5 = theArrayList.Add (this.lbNoiSoi.Items[i3].ToString ());
				i3++;
				
			L_006E:
				
				{
				}
				if (i3 < i2)
				{
					goto L_004A;
				}
				i4 = 0;
				goto L_0774;
				
			L_007C:
				
				{
				}
				theSqlCommand = new SqlCommand ("SELECT * FROM vw_InnerScan WHERE nscNameChild=@nscNameChild or nscNameLevelThree"
				+ " = @nscNameChild", theSqlConnection);
				theSqlParameter = new SqlParameter ("@nscNameChild", SqlDbType.NVarChar);
				theSqlParameter.Value = theArrayList[i4].ToString ();
				SqlParameter theSqlParameter2 = theSqlCommand.Parameters.Add (theSqlParameter);
				theSqlDataAdapter = new SqlDataAdapter (theSqlCommand);
				theDataSet = new DataSet ();
				int i6 = theSqlDataAdapter.Fill (theDataSet, "vw_InnerScan");
				theDataTable = theDataSet.Tables["vw_InnerScan"];
				theString2 = theArrayList[i4].ToString ();
				theString2 = theString2.Substring (((int) (theString2.IndexOf ('\u0028') + 1)), 1);
				if (theString2.ToUpper () != "T")
				{
					goto L_0127;
				}
				i = 1;
				goto L_013C;
				
			L_0127:
				
				{
				}
				if (theString2.ToUpper () != "P")
				{
					goto L_013C;
				}
				i = 2;
				
			L_013C:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () == "")
				{
					goto L_053B;
				}
				int i7 = theArrayList2.Add (theDataTable.Rows[0]["nscISNLevelThree"].ToString ());
				if (theDataTable.Rows[0]["Root3"].ToString () != "167")
				{
					goto L_01D4;
				}
				if (i != 2)
				{
					goto L_01C3;
				}
				theString = this.txtOngTaiNgoaiP.Text;
				
			L_01C3:
				
				{
				}
				if (i != 1)
				{
					goto L_01D4;
				}
				theString = this.txtOngTaiNgoaiT.Text;
				
			L_01D4:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "168")
				{
					goto L_021E;
				}
				if (i != 2)
				{
					goto L_020D;
				}
				theString = this.txtMangNhiP.Text;
				
			L_020D:
				
				{
				}
				if (i != 1)
				{
					goto L_021E;
				}
				theString = this.txtMangNhiT.Text;
				
			L_021E:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "170")
				{
					goto L_0268;
				}
				if (i != 2)
				{
					goto L_0257;
				}
				theString = this.txtCuonDuoiP.Text;
				
			L_0257:
				
				{
				}
				if (i != 1)
				{
					goto L_0268;
				}
				theString = this.txtCuonDuoiT.Text;
				
			L_0268:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "169")
				{
					goto L_02B2;
				}
				if (i != 2)
				{
					goto L_02A1;
				}
				theString = this.txtVachNganP.Text;
				
			L_02A1:
				
				{
				}
				if (i != 1)
				{
					goto L_02B2;
				}
				theString = this.txtVachNganT.Text;
				
			L_02B2:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "171")
				{
					goto L_02FC;
				}
				if (i != 2)
				{
					goto L_02EB;
				}
				theString = this.txtCuonGiuaP.Text;
				
			L_02EB:
				
				{
				}
				if (i != 1)
				{
					goto L_02FC;
				}
				theString = this.txtCuonGiuaT.Text;
				
			L_02FC:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "172")
				{
					goto L_0346;
				}
				if (i != 2)
				{
					goto L_0335;
				}
				theString = this.txtKheGiuaP.Text;
				
			L_0335:
				
				{
				}
				if (i != 1)
				{
					goto L_0346;
				}
				theString = this.txtKheGiuaT.Text;
				
			L_0346:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "173")
				{
					goto L_0390;
				}
				if (i != 2)
				{
					goto L_037F;
				}
				theString = this.txtKheTrenP.Text;
				
			L_037F:
				
				{
				}
				if (i != 1)
				{
					goto L_0390;
				}
				theString = this.txtKheTrenT.Text;
				
			L_0390:
				
				{
				}
				if (theDataTable.Rows[0]["Root3"].ToString () != "174")
				{
					goto L_03DA;
				}
				if (i != 2)
				{
					goto L_03C9;
				}
				theString = this.txtMomMocP.Text;
				
			L_03C9:
				
				{
				}
				if (i != 1)
				{
					goto L_03DA;
				}
				theString = this.txtMomMocT.Text;
				
			L_03DA:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				SqlConnection theSqlConnection2 = this.db.CreateConnections ();
				if (theString == "")
				{
					goto L_0536;
				}
				theStringArray = new string[8];
				theStringArray[0] = "@clrISN";
				theStringArray[1] = "@nscISN";
				theStringArray[2] = "@nscISNRoot";
				theStringArray[3] = "@srtScanOutList";
				theStringArray[4] = "@srtOpinion";
				theStringArray[5] = "@srtSuggestion";
				theStringArray[6] = "@srtPositionStatus";
				theStringArray[7] = "@srtScanListString";
				theSqlDbTypeArray = new SqlDbType[8];
				theSqlDbTypeArray[0] = SqlDbType.Int;
				theSqlDbTypeArray[1] = SqlDbType.Int;
				theSqlDbTypeArray[2] = SqlDbType.Int;
				theSqlDbTypeArray[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray[6] = SqlDbType.Int;
				theSqlDbTypeArray[7] = SqlDbType.NVarChar;
				theObjectArray = new object[8];
				theObjectArray[0] = this._clrISN;
				theObjectArray[1] = theDataTable.Rows[0]["nscISNLevelThree"].ToString ();
				theObjectArray[2] = theDataTable.Rows[0]["Root3"].ToString ();
				theObjectArray[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray[6] = i;
				theObjectArray[7] = theString;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray, theSqlDbTypeArray, theObjectArray);
				
			L_0536:
				
				{
				}
				goto L_076E;
				
			L_053B:
				
				{
				}
				int i8 = theArrayList2.Add (theDataTable.Rows[0]["nscISNChild"].ToString ());
				if (theDataTable.Rows[0]["nscISN"].ToString () != "85")
				{
					goto L_0593;
				}
				theString = this.txtHaHong.Text;
				
			L_0593:
				
				{
				}
				if (theDataTable.Rows[0]["nscISN"].ToString () != "3")
				{
					goto L_05DD;
				}
				if (i != 2)
				{
					goto L_05CC;
				}
				theString = this.txtVomHongP.Text;
				
			L_05CC:
				
				{
				}
				if (i != 1)
				{
					goto L_05DD;
				}
				theString = this.txtVomHongT.Text;
				
			L_05DD:
				
				{
				}
				if (theDataTable.Rows[0]["nscISN"].ToString () != "4")
				{
					goto L_0612;
				}
				theString = this.txtThanhQuan.Text;
				
			L_0612:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				SqlConnection theSqlConnection3 = this.db.CreateConnections ();
				if (theString == "")
				{
					goto L_076E;
				}
				theStringArray2 = new string[8];
				theStringArray2[0] = "@clrISN";
				theStringArray2[1] = "@nscISN";
				theStringArray2[2] = "@nscISNRoot";
				theStringArray2[3] = "@srtScanOutList";
				theStringArray2[4] = "@srtOpinion";
				theStringArray2[5] = "@srtSuggestion";
				theStringArray2[6] = "@srtPositionStatus";
				theStringArray2[7] = "@srtScanListString";
				theSqlDbTypeArray2 = new SqlDbType[8];
				theSqlDbTypeArray2[0] = SqlDbType.Int;
				theSqlDbTypeArray2[1] = SqlDbType.Int;
				theSqlDbTypeArray2[2] = SqlDbType.Int;
				theSqlDbTypeArray2[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[6] = SqlDbType.Int;
				theSqlDbTypeArray2[7] = SqlDbType.NVarChar;
				theObjectArray2 = new object[8];
				theObjectArray2[0] = this._clrISN;
				theObjectArray2[1] = theDataTable.Rows[0]["nscISNChild"].ToString ();
				theObjectArray2[2] = theDataTable.Rows[0]["nscISN"].ToString ();
				theObjectArray2[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray2[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray2[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray2[6] = i;
				theObjectArray2[7] = theString;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray2, theSqlDbTypeArray2, theObjectArray2);
				
			L_076E:
				
				{
				}
				i4++;
				
			L_0774:
				
				{
				}
				if (i4 < theArrayList.Count)
				{
					goto L_007C;
				}
				DialogResult theDialogResult = MessageBox.Show ("N?i soi ?? ???c l?u", "L?u N?i Soi", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				this.NoiSoiNgoaiDS ();
				this.btLuu.Enabled = false;
				this.btHinhAnh.Enabled = true;
				theArrayList.Clear ();
				theArrayList2.Clear ();
				i2 = 0;
				theSqlConnection.Close ();
				
			L_07C7:
				return;
			}
			
			private void btRemove_Click (object sender, EventArgs e)
			
			{
				this.lbNoiSoi_DoubleClick (sender, e);
				this.NoiSoiCheck ();
				return;
			}
			
			private void btThoat_Click (object sender, EventArgs e)
			
			{
				base.Close ();
				return;
			}
			
			private void mnuThoat_Click (object sender, EventArgs e)
			
			{
				base.Close ();
				return;
			}
			
			private bool CheckInputData ()
			
			{
				int i;
				int i2;
				bool theBoolean;
				i = 0;
				goto L_0066;
				
			L_0004:
				
				{
				}
				i2 = 0;
				goto L_004F;
				
			L_0008:
				
				{
				}
				if (this.lbNoiSoi.Items[i2].ToString () != "")
				{
					goto L_004B;
				}
				this.lbNoiSoi.Items.Remove (this.lbNoiSoi.Items[i2]);
				
			L_004B:
				
				{
				}
				i2++;
				
			L_004F:
				
				{
				}
				if (i2 < this.lbNoiSoi.Items.Count)
				{
					goto L_0008;
				}
				i++;
				
			L_0066:
				
				{
				}
				if (i < this.lbNoiSoi.Items.Count)
				{
					goto L_0004;
				}
				theBoolean = true;
				goto L_007D;
				
			L_007D:
				
				{
				}
				return theBoolean;
			}
			
			protected override void Dispose (bool disposing)
			
			{
				if (! disposing)
				{
					goto L_0016;
				}
				if (this.components == null)
				{
					goto L_0016;
				}
				this.components.Dispose ();
				
			L_0016:
				
				{
				}
				base.Dispose (disposing);
				return;
			}
			
			private void frmNoiSoi_Load (object sender, EventArgs e)
			
			{
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				int i;
				this.LoadCayNoiSoi ();
				if (! this._Insert)
				{
					goto L_0037;
				}
				this.btLuu.Enabled = true;
				this.btCapNhat.Enabled = false;
				this.btHinhAnh.Enabled = false;
				goto L_0D93;
				
			L_0037:
				
				{
				}
				this.btLuu.Enabled = false;
				this.btCapNhat.Enabled = true;
				this.btHinhAnh.Enabled = true;
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT * FROM vw_ScanResult_InnerScan WHERE clrISN=", this._clrISN, " order by nscISNRoot, srtPositionStatus"), theSqlConnection);
				theDataSet = new DataSet ();
				int i2 = theSqlDataAdapter.Fill (theDataSet, "vw_ScanResult_InnerScan");
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_00C3;
				}
				
			L_00BE:
				
				{
				}
				goto L_0D93;
				
			L_00C3:
				
				{
				}
				this.lbNoiSoi.Items.Clear ();
				i = 0;
				goto L_0CE4;
				
			L_00DA:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscName"].ToString () == "")
				{
					goto L_0143;
				}
				int i3 = this.lbNoiSoi.Items.Add (theDataSet.Tables[0].Rows[i]["nscName"].ToString ());
				
			L_0143:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "167")
				{
					goto L_026C;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_01F2;
				}
				if (this.txtOngTaiNgoaiP.Text != "")
				{
					goto L_01F2;
				}
				this.txtOngTaiNgoaiP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_01F2:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_026C;
				}
				if (this.txtOngTaiNgoaiT.Text != "")
				{
					goto L_026C;
				}
				this.txtOngTaiNgoaiT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_026C:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "168")
				{
					goto L_0395;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_031B;
				}
				if (this.txtMangNhiP.Text != "")
				{
					goto L_031B;
				}
				this.txtMangNhiP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_031B:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_0395;
				}
				if (this.txtMangNhiT.Text != "")
				{
					goto L_0395;
				}
				this.txtMangNhiT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0395:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "170")
				{
					goto L_04BE;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_0444;
				}
				if (this.txtCuonDuoiP.Text != "")
				{
					goto L_0444;
				}
				this.txtCuonDuoiP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0444:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_04BE;
				}
				if (this.txtCuonDuoiT.Text != "")
				{
					goto L_04BE;
				}
				this.txtCuonDuoiT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_04BE:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "169")
				{
					goto L_05E7;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_056D;
				}
				if (this.txtVachNganP.Text != "")
				{
					goto L_056D;
				}
				this.txtVachNganP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_056D:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_05E7;
				}
				if (this.txtVachNganT.Text != "")
				{
					goto L_05E7;
				}
				this.txtVachNganT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_05E7:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "171")
				{
					goto L_0710;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_0696;
				}
				if (this.txtCuonGiuaP.Text != "")
				{
					goto L_0696;
				}
				this.txtCuonGiuaP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0696:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_0710;
				}
				if (this.txtCuonGiuaT.Text != "")
				{
					goto L_0710;
				}
				this.txtCuonGiuaT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0710:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "172")
				{
					goto L_0839;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_07BF;
				}
				if (this.txtKheGiuaP.Text != "")
				{
					goto L_07BF;
				}
				this.txtKheGiuaP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_07BF:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_0839;
				}
				if (this.txtKheGiuaT.Text != "")
				{
					goto L_0839;
				}
				this.txtKheGiuaT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0839:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "173")
				{
					goto L_0962;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_08E8;
				}
				if (this.txtKheTrenP.Text != "")
				{
					goto L_08E8;
				}
				this.txtKheTrenP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_08E8:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_0962;
				}
				if (this.txtKheTrenT.Text != "")
				{
					goto L_0962;
				}
				this.txtKheTrenT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0962:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "174")
				{
					goto L_0A8B;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_0A11;
				}
				if (this.txtMomMocP.Text != "")
				{
					goto L_0A11;
				}
				this.txtMomMocP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0A11:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_0A8B;
				}
				if (this.txtMomMocT.Text != "")
				{
					goto L_0A8B;
				}
				this.txtMomMocT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0A8B:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "3")
				{
					goto L_0BB4;
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "2")
				{
					goto L_0B3A;
				}
				if (this.txtVomHongP.Text != "")
				{
					goto L_0B3A;
				}
				this.txtVomHongP.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0B3A:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["srtPositionStatus"].ToString () != "1")
				{
					goto L_0BB4;
				}
				if (this.txtVomHongT.Text != "")
				{
					goto L_0BB4;
				}
				this.txtVomHongT.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0BB4:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "85")
				{
					goto L_0C2E;
				}
				if (this.txtHaHong.Text != "")
				{
					goto L_0C2E;
				}
				this.txtHaHong.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0C2E:
				
				{
				}
				if (theDataSet.Tables[0].Rows[i]["nscISNRoot"].ToString () != "4")
				{
					goto L_0CA8;
				}
				if (this.txtThanhQuan.Text != "")
				{
					goto L_0CA8;
				}
				this.txtThanhQuan.Text = theDataSet.Tables[0].Rows[i]["srtScanListString"].ToString ();
				
			L_0CA8:
				
				{
				}
				if (theDataSet.Tables[0].Rows[0]["srtScanListString"].ToString () != "")
				{
					goto L_0CE0;
				}
				this.NoiSoiCheck ();
				
			L_0CE0:
				
				{
				}
				i++;
				
			L_0CE4:
				
				{
				}
				if (i < theDataSet.Tables[0].Rows.Count)
				{
					goto L_00DA;
				}
				this.tbNoiSoiNgoaiDanhSach.Text = theDataSet.Tables[0].Rows[0]["srtScanOutList"].ToString ();
				this.txtCamNghi.Text = theDataSet.Tables[0].Rows[0]["srtOpinion"].ToString ();
				this.txtDeNghi.Text = theDataSet.Tables[0].Rows[0]["srtSuggestion"].ToString ();
				
			L_0D93:
				return;
			}
			
			private void InitializeComponent ()
			
			{
				ResourceManager theResourceManager;
				Control[] theControlArray;
				Control[] theControlArray2;
				Control[] theControlArray3;
				this.components = ((IContainer) new System.ComponentModel.Container ());
				theResourceManager = new ResourceManager (typeof (frmNoiSoi));
				this.label2 = new Label ();
				this.label3 = new Label ();
				this.tbID = new TextBox ();
				this.tbHoTen = new TextBox ();
				this.tvNoiSoi = new TreeView ();
				this.btAdd = new Button ();
				this.btRemove = new Button ();
				this.lbNoiSoi = new ListBox ();
				this.label4 = new Label ();
				this.tbNoiSoiNgoaiDanhSach = new TextBox ();
				this.groupBox1 = new GroupBox ();
				this.btThoat = new Button ();
				this.groupBox2 = new GroupBox ();
				this.btLuu = new Button ();
				this.btHinhAnh = new Button ();
				this.btCapNhat = new Button ();
				this.btIn = new Button ();
				this.toolTip1 = new ToolTip (this.components);
				this.txtCamNghi = new TextBox ();
				this.label5 = new Label ();
				this.txtDeNghi = new TextBox ();
				this.label6 = new Label ();
				this.txtCuonDuoiT = new TextBox ();
				this.txtCuonDuoiP = new TextBox ();
				this.txtCuonGiuaT = new TextBox ();
				this.txtCuonGiuaP = new TextBox ();
				this.txtKheGiuaT = new TextBox ();
				this.txtKheGiuaP = new TextBox ();
				this.txtKheTrenT = new TextBox ();
				this.txtKheTrenP = new TextBox ();
				this.txtMomMocT = new TextBox ();
				this.txtMomMocP = new TextBox ();
				this.txtHaHong = new TextBox ();
				this.txtMangNhiT = new TextBox ();
				this.txtVachNganT = new TextBox ();
				this.txtMangNhiP = new TextBox ();
				this.txtOngTaiNgoaiT = new TextBox ();
				this.txtOngTaiNgoaiP = new TextBox ();
				this.txtVachNganP = new TextBox ();
				this.label15 = new Label ();
				this.label16 = new Label ();
				this.splitter1 = new Splitter ();
				this.label19 = new Label ();
				this.label18 = new Label ();
				this.label17 = new Label ();
				this.label14 = new Label ();
				this.label13 = new Label ();
				this.label12 = new Label ();
				this.label11 = new Label ();
				this.label10 = new Label ();
				this.label9 = new Label ();
				this.label8 = new Label ();
				this.label7 = new Label ();
				this.panel1 = new Panel ();
				this.gbNoiSoiText = new GroupBox ();
				this.txtVomHongP = new TextBox ();
				this.txtVomHongT = new TextBox ();
				this.txtThanhQuan = new TextBox ();
				this.label1 = new Label ();
				this.groupBox1.SuspendLayout ();
				this.gbNoiSoiText.SuspendLayout ();
				base.SuspendLayout ();
				this.label2.Location = new Point (104, 8);
				this.label2.Name = "label2";
				this.label2.TabIndex = 1;
				this.label2.Text = "S? ID:";
				this.label3.Location = new Point (416, 8);
				this.label3.Name = "label3";
				this.label3.TabIndex = 2;
				this.label3.Text = "H? T?n:";
				this.tbID.BorderStyle = BorderStyle.FixedSingle;
				this.tbID.Enabled = false;
				this.tbID.Location = new Point (168, 8);
				this.tbID.Name = "tbID";
				this.tbID.Size = new System.Drawing.Size (232, 23);
				this.tbID.TabIndex = 3;
				this.tbID.Text = "";
				this.tbHoTen.BorderStyle = BorderStyle.FixedSingle;
				this.tbHoTen.Enabled = false;
				this.tbHoTen.Location = new Point (480, 8);
				this.tbHoTen.Name = "tbHoTen";
				this.tbHoTen.Size = new System.Drawing.Size (248, 23);
				this.tbHoTen.TabIndex = 4;
				this.tbHoTen.Text = "";
				this.tvNoiSoi.BorderStyle = BorderStyle.FixedSingle;
				this.tvNoiSoi.Font = new Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tvNoiSoi.ImageIndex = -1;
				this.tvNoiSoi.Location = new Point (168, 40);
				this.tvNoiSoi.Name = "tvNoiSoi";
				this.tvNoiSoi.SelectedImageIndex = -1;
				this.tvNoiSoi.Size = new System.Drawing.Size (232, 130);
				this.tvNoiSoi.TabIndex = 5;
				this.tvNoiSoi.DoubleClick += new EventHandler (this.tvNoiSoi_DoubleClick);
				this.btAdd.FlatStyle = FlatStyle.Popup;
				this.btAdd.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("btAdd.Image")));
				this.btAdd.Location = new Point (424, 75);
				this.btAdd.Name = "btAdd";
				this.btAdd.Size = new System.Drawing.Size (32, 23);
				this.btAdd.TabIndex = 6;
				this.btAdd.Click += new EventHandler (this.btAdd_Click);
				this.btRemove.FlatStyle = FlatStyle.Popup;
				this.btRemove.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("btRemove.Image")));
				this.btRemove.Location = new Point (424, 99);
				this.btRemove.Name = "btRemove";
				this.btRemove.Size = new System.Drawing.Size (32, 23);
				this.btRemove.TabIndex = 7;
				this.btRemove.Click += new EventHandler (this.btRemove_Click);
				this.lbNoiSoi.BorderStyle = BorderStyle.FixedSingle;
				this.lbNoiSoi.HorizontalScrollbar = true;
				this.lbNoiSoi.ItemHeight = 16;
				this.lbNoiSoi.Location = new Point (480, 40);
				this.lbNoiSoi.Name = "lbNoiSoi";
				this.lbNoiSoi.ScrollAlwaysVisible = true;
				this.lbNoiSoi.Size = new System.Drawing.Size (248, 130);
				this.lbNoiSoi.TabIndex = 8;
				this.lbNoiSoi.DoubleClick += new EventHandler (this.lbNoiSoi_DoubleClick);
				this.lbNoiSoi.SelectedIndexChanged += new EventHandler (this.lbNoiSoi_SelectedIndexChanged);
				this.label4.AutoSize = true;
				this.label4.Location = new Point (144, 640);
				this.label4.Name = "label4";
				this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label4.Size = new System.Drawing.Size (171, 16);
				this.label4.TabIndex = 9;
				this.label4.Text = ":N?i soi ngo?i danh s?ch";
				this.label4.Visible = false;
				this.tbNoiSoiNgoaiDanhSach.BorderStyle = BorderStyle.FixedSingle;
				this.tbNoiSoiNgoaiDanhSach.Location = new Point (336, 632);
				this.tbNoiSoiNgoaiDanhSach.Multiline = true;
				this.tbNoiSoiNgoaiDanhSach.Name = "tbNoiSoiNgoaiDanhSach";
				this.tbNoiSoiNgoaiDanhSach.ScrollBars = ScrollBars.Both;
				this.tbNoiSoiNgoaiDanhSach.Size = new System.Drawing.Size (192, 56);
				this.tbNoiSoiNgoaiDanhSach.TabIndex = 10;
				this.tbNoiSoiNgoaiDanhSach.Text = "";
				this.tbNoiSoiNgoaiDanhSach.Visible = false;
				theControlArray = new Control[6];
				theControlArray[0] = ((Control) this.btThoat);
				theControlArray[1] = ((Control) this.groupBox2);
				theControlArray[2] = ((Control) this.btLuu);
				theControlArray[3] = ((Control) this.btHinhAnh);
				theControlArray[4] = ((Control) this.btCapNhat);
				theControlArray[5] = ((Control) this.btIn);
				this.groupBox1.Controls.AddRange (theControlArray);
				this.groupBox1.Location = new Point (168, 568);
				this.groupBox1.Name = "groupBox1";
				this.groupBox1.Size = new System.Drawing.Size (432, 48);
				this.groupBox1.TabIndex = 11;
				this.groupBox1.TabStop = false;
				this.btThoat.FlatStyle = FlatStyle.Popup;
				this.btThoat.Location = new Point (341, 16);
				this.btThoat.Name = "btThoat";
				this.btThoat.TabIndex = 15;
				this.btThoat.Text = "Tho?t";
				this.btThoat.Click += new EventHandler (this.btThoat_Click);
				this.groupBox2.Location = new Point (32, -112);
				this.groupBox2.Name = "groupBox2";
				this.groupBox2.Size = new System.Drawing.Size (344, 58);
				this.groupBox2.TabIndex = 13;
				this.groupBox2.TabStop = false;
				this.btLuu.FlatStyle = FlatStyle.Popup;
				this.btLuu.Location = new Point (16, 16);
				this.btLuu.Name = "btLuu";
				this.btLuu.TabIndex = 0;
				this.btLuu.Text = "L?u";
				this.btLuu.Click += new EventHandler (this.btLuu_Click);
				this.btHinhAnh.FlatStyle = FlatStyle.Popup;
				this.btHinhAnh.Location = new Point (96, 16);
				this.btHinhAnh.Name = "btHinhAnh";
				this.btHinhAnh.TabIndex = 12;
				this.btHinhAnh.Text = "H?nh ?nh";
				this.btHinhAnh.Click += new EventHandler (this.btHinhAnh_Click);
				this.btCapNhat.FlatStyle = FlatStyle.Popup;
				this.btCapNhat.Location = new Point (176, 16);
				this.btCapNhat.Name = "btCapNhat";
				this.btCapNhat.Size = new System.Drawing.Size (80, 23);
				this.btCapNhat.TabIndex = 12;
				this.btCapNhat.Text = "C?p Nh?t";
				this.btCapNhat.Click += new EventHandler (this.btCapNhat_Click);
				this.btIn.FlatStyle = FlatStyle.Popup;
				this.btIn.Location = new Point (261, 16);
				this.btIn.Name = "btIn";
				this.btIn.TabIndex = 14;
				this.btIn.Text = "In";
				this.btIn.Click += new EventHandler (this.btIn_Click);
				this.txtCamNghi.BorderStyle = BorderStyle.FixedSingle;
				this.txtCamNghi.Location = new Point (168, 510);
				this.txtCamNghi.Multiline = true;
				this.txtCamNghi.Name = "txtCamNghi";
				this.txtCamNghi.ScrollBars = ScrollBars.Both;
				this.txtCamNghi.Size = new System.Drawing.Size (192, 56);
				this.txtCamNghi.TabIndex = 13;
				this.txtCamNghi.Text = "";
				this.label5.AutoSize = true;
				this.label5.Location = new Point (83, 518);
				this.label5.Name = "label5";
				this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label5.Size = new System.Drawing.Size (75, 16);
				this.label5.TabIndex = 12;
				this.label5.Text = ":C?m ngh?";
				this.txtDeNghi.BorderStyle = BorderStyle.FixedSingle;
				this.txtDeNghi.Location = new Point (543, 510);
				this.txtDeNghi.Multiline = true;
				this.txtDeNghi.Name = "txtDeNghi";
				this.txtDeNghi.ScrollBars = ScrollBars.Both;
				this.txtDeNghi.Size = new System.Drawing.Size (192, 56);
				this.txtDeNghi.TabIndex = 15;
				this.txtDeNghi.Text = "";
				this.label6.AutoSize = true;
				this.label6.Location = new Point (468, 518);
				this.label6.Name = "label6";
				this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label6.Size = new System.Drawing.Size (63, 16);
				this.label6.TabIndex = 14;
				this.label6.Text = ":?? ngh?";
				this.txtCuonDuoiT.BorderStyle = BorderStyle.FixedSingle;
				this.txtCuonDuoiT.Location = new Point (472, 286);
				this.txtCuonDuoiT.Name = "txtCuonDuoiT";
				this.txtCuonDuoiT.Size = new System.Drawing.Size (248, 23);
				this.txtCuonDuoiT.TabIndex = 23;
				this.txtCuonDuoiT.Text = "";
				this.txtCuonDuoiP.BorderStyle = BorderStyle.FixedSingle;
				this.txtCuonDuoiP.Location = new Point (176, 286);
				this.txtCuonDuoiP.Name = "txtCuonDuoiP";
				this.txtCuonDuoiP.Size = new System.Drawing.Size (256, 23);
				this.txtCuonDuoiP.TabIndex = 22;
				this.txtCuonDuoiP.Text = "";
				this.txtCuonGiuaT.BorderStyle = BorderStyle.FixedSingle;
				this.txtCuonGiuaT.Location = new Point (472, 312);
				this.txtCuonGiuaT.Name = "txtCuonGiuaT";
				this.txtCuonGiuaT.Size = new System.Drawing.Size (248, 23);
				this.txtCuonGiuaT.TabIndex = 25;
				this.txtCuonGiuaT.Text = "";
				this.txtCuonGiuaP.BorderStyle = BorderStyle.FixedSingle;
				this.txtCuonGiuaP.Location = new Point (176, 312);
				this.txtCuonGiuaP.Name = "txtCuonGiuaP";
				this.txtCuonGiuaP.Size = new System.Drawing.Size (256, 23);
				this.txtCuonGiuaP.TabIndex = 24;
				this.txtCuonGiuaP.Text = "";
				this.txtKheGiuaT.BorderStyle = BorderStyle.FixedSingle;
				this.txtKheGiuaT.Location = new Point (472, 338);
				this.txtKheGiuaT.Name = "txtKheGiuaT";
				this.txtKheGiuaT.Size = new System.Drawing.Size (248, 23);
				this.txtKheGiuaT.TabIndex = 27;
				this.txtKheGiuaT.Text = "";
				this.txtKheGiuaP.BorderStyle = BorderStyle.FixedSingle;
				this.txtKheGiuaP.Location = new Point (176, 338);
				this.txtKheGiuaP.Name = "txtKheGiuaP";
				this.txtKheGiuaP.Size = new System.Drawing.Size (256, 23);
				this.txtKheGiuaP.TabIndex = 26;
				this.txtKheGiuaP.Text = "";
				this.txtKheTrenT.BorderStyle = BorderStyle.FixedSingle;
				this.txtKheTrenT.Location = new Point (472, 364);
				this.txtKheTrenT.Name = "txtKheTrenT";
				this.txtKheTrenT.Size = new System.Drawing.Size (248, 23);
				this.txtKheTrenT.TabIndex = 29;
				this.txtKheTrenT.Text = "";
				this.txtKheTrenP.BorderStyle = BorderStyle.FixedSingle;
				this.txtKheTrenP.Location = new Point (176, 364);
				this.txtKheTrenP.Name = "txtKheTrenP";
				this.txtKheTrenP.Size = new System.Drawing.Size (256, 23);
				this.txtKheTrenP.TabIndex = 28;
				this.txtKheTrenP.Text = "";
				this.txtMomMocT.BorderStyle = BorderStyle.FixedSingle;
				this.txtMomMocT.Location = new Point (472, 390);
				this.txtMomMocT.Name = "txtMomMocT";
				this.txtMomMocT.Size = new System.Drawing.Size (248, 23);
				this.txtMomMocT.TabIndex = 31;
				this.txtMomMocT.Text = "";
				this.txtMomMocP.BorderStyle = BorderStyle.FixedSingle;
				this.txtMomMocP.Location = new Point (176, 390);
				this.txtMomMocP.Name = "txtMomMocP";
				this.txtMomMocP.Size = new System.Drawing.Size (256, 23);
				this.txtMomMocP.TabIndex = 30;
				this.txtMomMocP.Text = "";
				this.txtHaHong.BorderStyle = BorderStyle.FixedSingle;
				this.txtHaHong.Location = new Point (176, 443);
				this.txtHaHong.Name = "txtHaHong";
				this.txtHaHong.Size = new System.Drawing.Size (544, 23);
				this.txtHaHong.TabIndex = 33;
				this.txtHaHong.Text = "";
				this.txtMangNhiT.BorderStyle = BorderStyle.FixedSingle;
				this.txtMangNhiT.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtMangNhiT.Location = new Point (472, 234);
				this.txtMangNhiT.Name = "txtMangNhiT";
				this.txtMangNhiT.Size = new System.Drawing.Size (248, 23);
				this.txtMangNhiT.TabIndex = 19;
				this.txtMangNhiT.Text = "";
				this.txtVachNganT.BorderStyle = BorderStyle.FixedSingle;
				this.txtVachNganT.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtVachNganT.Location = new Point (472, 260);
				this.txtVachNganT.Name = "txtVachNganT";
				this.txtVachNganT.Size = new System.Drawing.Size (248, 23);
				this.txtVachNganT.TabIndex = 21;
				this.txtVachNganT.Text = "";
				this.txtMangNhiP.BorderStyle = BorderStyle.FixedSingle;
				this.txtMangNhiP.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtMangNhiP.Location = new Point (176, 234);
				this.txtMangNhiP.Name = "txtMangNhiP";
				this.txtMangNhiP.Size = new System.Drawing.Size (256, 23);
				this.txtMangNhiP.TabIndex = 18;
				this.txtMangNhiP.Text = "";
				this.txtOngTaiNgoaiT.BorderStyle = BorderStyle.FixedSingle;
				this.txtOngTaiNgoaiT.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtOngTaiNgoaiT.Location = new Point (472, 208);
				this.txtOngTaiNgoaiT.Name = "txtOngTaiNgoaiT";
				this.txtOngTaiNgoaiT.Size = new System.Drawing.Size (248, 23);
				this.txtOngTaiNgoaiT.TabIndex = 17;
				this.txtOngTaiNgoaiT.Text = "";
				this.txtOngTaiNgoaiT.TextChanged += new EventHandler (this.txtOngTaiNgoaiP_TextChanged);
				this.txtOngTaiNgoaiP.BorderStyle = BorderStyle.FixedSingle;
				this.txtOngTaiNgoaiP.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtOngTaiNgoaiP.Location = new Point (176, 208);
				this.txtOngTaiNgoaiP.Name = "txtOngTaiNgoaiP";
				this.txtOngTaiNgoaiP.Size = new System.Drawing.Size (256, 23);
				this.txtOngTaiNgoaiP.TabIndex = 16;
				this.txtOngTaiNgoaiP.Text = "";
				this.txtVachNganP.BorderStyle = BorderStyle.FixedSingle;
				this.txtVachNganP.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtVachNganP.Location = new Point (176, 260);
				this.txtVachNganP.Name = "txtVachNganP";
				this.txtVachNganP.Size = new System.Drawing.Size (256, 23);
				this.txtVachNganP.TabIndex = 20;
				this.txtVachNganP.Text = "";
				this.label15.AutoSize = true;
				this.label15.Font = new Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label15.Location = new Point (272, 184);
				this.label15.Name = "label15";
				this.label15.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label15.Size = new System.Drawing.Size (71, 16);
				this.label15.TabIndex = 42;
				this.label15.Text = "B?n Ph?i";
				this.label16.AutoSize = true;
				this.label16.Font = new Font ("Verdana", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label16.Location = new Point (568, 184);
				this.label16.Name = "label16";
				this.label16.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label16.Size = new System.Drawing.Size (67, 16);
				this.label16.TabIndex = 43;
				this.label16.Text = "B?n Tr?i";
				this.splitter1.BackColor = SystemColors.Desktop;
				this.splitter1.BorderStyle = BorderStyle.FixedSingle;
				this.splitter1.Name = "splitter1";
				this.splitter1.Size = new System.Drawing.Size (48, 288);
				this.splitter1.TabIndex = 0;
				this.splitter1.TabStop = false;
				this.label19.AutoSize = true;
				this.label19.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label19.Location = new Point (9, 473);
				this.label19.Name = "label19";
				this.label19.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label19.Size = new System.Drawing.Size (153, 16);
				this.label19.TabIndex = 57;
				this.label19.Text = ":H? h?ng-Thanh qu?n";
				this.label18.AutoSize = true;
				this.label18.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label18.Location = new Point (82, 447);
				this.label18.Name = "label18";
				this.label18.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label18.Size = new System.Drawing.Size (80, 16);
				this.label18.TabIndex = 56;
				this.label18.Text = ":H?u h?ng ";
				this.label17.AutoSize = true;
				this.label17.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label17.Location = new Point (53, 421);
				this.label17.Name = "label17";
				this.label17.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label17.Size = new System.Drawing.Size (109, 16);
				this.label17.TabIndex = 55;
				this.label17.Text = ":V?m m?i h?ng";
				this.label14.AutoSize = true;
				this.label14.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label14.Location = new Point (6, 395);
				this.label14.Name = "label14";
				this.label14.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label14.Size = new System.Drawing.Size (156, 16);
				this.label14.TabIndex = 54;
				this.label14.Text = ":M?m m?c, b?ng s?ng";
				this.label13.AutoSize = true;
				this.label13.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label13.Location = new Point (93, 369);
				this.label13.Name = "label13";
				this.label13.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label13.Size = new System.Drawing.Size (69, 16);
				this.label13.TabIndex = 53;
				this.label13.Text = ":Khe tr?n";
				this.label12.AutoSize = true;
				this.label12.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label12.Location = new Point (92, 343);
				this.label12.Name = "label12";
				this.label12.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label12.Size = new System.Drawing.Size (70, 16);
				this.label12.TabIndex = 52;
				this.label12.Text = ":Khe gi?a";
				this.label11.AutoSize = true;
				this.label11.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label11.Location = new Point (83, 317);
				this.label11.Name = "label11";
				this.label11.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label11.Size = new System.Drawing.Size (79, 16);
				this.label11.TabIndex = 51;
				this.label11.Text = ":Cu?n gi?a";
				this.label10.AutoSize = true;
				this.label10.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label10.Location = new Point (83, 291);
				this.label10.Name = "label10";
				this.label10.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label10.Size = new System.Drawing.Size (79, 16);
				this.label10.TabIndex = 50;
				this.label10.Text = ":Cu?n d??i";
				this.label9.AutoSize = true;
				this.label9.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label9.Location = new Point (80, 265);
				this.label9.Name = "label9";
				this.label9.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label9.Size = new System.Drawing.Size (82, 16);
				this.label9.TabIndex = 49;
				this.label9.Text = ":V?ch ng?n";
				this.label8.AutoSize = true;
				this.label8.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label8.Location = new Point (90, 239);
				this.label8.Name = "label8";
				this.label8.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label8.Size = new System.Drawing.Size (72, 16);
				this.label8.TabIndex = 48;
				this.label8.Text = ":M?ng nh?";
				this.label7.AutoSize = true;
				this.label7.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label7.Location = new Point (61, 213);
				this.label7.Name = "label7";
				this.label7.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
				this.label7.Size = new System.Drawing.Size (101, 16);
				this.label7.TabIndex = 47;
				this.label7.Text = ":?ng tai ngo?i";
				this.panel1.BackColor = SystemColors.Desktop;
				this.panel1.Font = new Font ("Microsoft Sans Serif", 8.25F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.panel1.Location = new Point (280, 8);
				this.panel1.Name = "panel1";
				this.panel1.Size = new System.Drawing.Size (8, 248);
				this.panel1.TabIndex = 36;
				theControlArray2 = new Control[2];
				theControlArray2[0] = ((Control) this.txtThanhQuan);
				theControlArray2[1] = ((Control) this.panel1);
				this.gbNoiSoiText.Controls.AddRange (theControlArray2);
				this.gbNoiSoiText.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.gbNoiSoiText.Location = new Point (168, 184);
				this.gbNoiSoiText.Name = "gbNoiSoiText";
				this.gbNoiSoiText.Size = new System.Drawing.Size (568, 320);
				this.gbNoiSoiText.TabIndex = 32;
				this.gbNoiSoiText.TabStop = false;
				this.txtVomHongP.BorderStyle = BorderStyle.FixedSingle;
				this.txtVomHongP.Location = new Point (176, 416);
				this.txtVomHongP.Name = "txtVomHongP";
				this.txtVomHongP.Size = new System.Drawing.Size (256, 23);
				this.txtVomHongP.TabIndex = 58;
				this.txtVomHongP.Text = "";
				this.txtVomHongT.BorderStyle = BorderStyle.FixedSingle;
				this.txtVomHongT.Location = new Point (472, 416);
				this.txtVomHongT.Name = "txtVomHongT";
				this.txtVomHongT.Size = new System.Drawing.Size (248, 23);
				this.txtVomHongT.TabIndex = 59;
				this.txtVomHongT.Text = "";
				this.txtThanhQuan.BorderStyle = BorderStyle.FixedSingle;
				this.txtThanhQuan.Location = new Point (9, 288);
				this.txtThanhQuan.Name = "txtThanhQuan";
				this.txtThanhQuan.Size = new System.Drawing.Size (544, 23);
				this.txtThanhQuan.TabIndex = 37;
				this.txtThanhQuan.Text = "";
				this.label1.Location = new Point (24, 44);
				this.label1.Name = "label1";
				this.label1.Size = new System.Drawing.Size (136, 23);
				this.label1.TabIndex = 60;
				this.label1.Text = "Danh s?ch n?i soi:";
				this.AutoScaleBaseSize = new System.Drawing.Size (7, 16);
				base.ClientSize = new System.Drawing.Size (746, 626);
				theControlArray3 = new Control[49];
				theControlArray3[0] = ((Control) this.label1);
				theControlArray3[1] = ((Control) this.txtVomHongT);
				theControlArray3[2] = ((Control) this.txtVomHongP);
				theControlArray3[3] = ((Control) this.label19);
				theControlArray3[4] = ((Control) this.label18);
				theControlArray3[5] = ((Control) this.label17);
				theControlArray3[6] = ((Control) this.label14);
				theControlArray3[7] = ((Control) this.label13);
				theControlArray3[8] = ((Control) this.label12);
				theControlArray3[9] = ((Control) this.label11);
				theControlArray3[10] = ((Control) this.label10);
				theControlArray3[11] = ((Control) this.label9);
				theControlArray3[12] = ((Control) this.label8);
				theControlArray3[13] = ((Control) this.label7);
				theControlArray3[14] = ((Control) this.label16);
				theControlArray3[15] = ((Control) this.label15);
				theControlArray3[16] = ((Control) this.txtHaHong);
				theControlArray3[17] = ((Control) this.txtMomMocT);
				theControlArray3[18] = ((Control) this.txtMomMocP);
				theControlArray3[19] = ((Control) this.txtKheTrenT);
				theControlArray3[20] = ((Control) this.txtKheTrenP);
				theControlArray3[21] = ((Control) this.txtKheGiuaT);
				theControlArray3[22] = ((Control) this.txtKheGiuaP);
				theControlArray3[23] = ((Control) this.txtCuonGiuaT);
				theControlArray3[24] = ((Control) this.txtCuonGiuaP);
				theControlArray3[25] = ((Control) this.txtCuonDuoiT);
				theControlArray3[26] = ((Control) this.txtCuonDuoiP);
				theControlArray3[27] = ((Control) this.txtVachNganT);
				theControlArray3[28] = ((Control) this.txtVachNganP);
				theControlArray3[29] = ((Control) this.txtMangNhiT);
				theControlArray3[30] = ((Control) this.txtMangNhiP);
				theControlArray3[31] = ((Control) this.txtOngTaiNgoaiT);
				theControlArray3[32] = ((Control) this.txtOngTaiNgoaiP);
				theControlArray3[33] = ((Control) this.txtDeNghi);
				theControlArray3[34] = ((Control) this.label6);
				theControlArray3[35] = ((Control) this.txtCamNghi);
				theControlArray3[36] = ((Control) this.label5);
				theControlArray3[37] = ((Control) this.tbNoiSoiNgoaiDanhSach);
				theControlArray3[38] = ((Control) this.label4);
				theControlArray3[39] = ((Control) this.lbNoiSoi);
				theControlArray3[40] = ((Control) this.btRemove);
				theControlArray3[41] = ((Control) this.btAdd);
				theControlArray3[42] = ((Control) this.tvNoiSoi);
				theControlArray3[43] = ((Control) this.tbHoTen);
				theControlArray3[44] = ((Control) this.tbID);
				theControlArray3[45] = ((Control) this.label3);
				theControlArray3[46] = ((Control) this.label2);
				theControlArray3[47] = ((Control) this.groupBox1);
				theControlArray3[48] = ((Control) this.gbNoiSoiText);
				base.Controls.AddRange (theControlArray3);
				this.Font = new Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
				base.Icon = ((System.Drawing.Icon) theResourceManager.GetObject ("$this.Icon"));
				base.MaximizeBox = false;
				base.MinimizeBox = false;
				base.Name = "frmNoiSoi";
				base.StartPosition = FormStartPosition.CenterScreen;
				this.Text = "N?i Soi";
				base.Load += new EventHandler (this.frmNoiSoi_Load);
				this.groupBox1.ResumeLayout (false);
				this.gbNoiSoiText.ResumeLayout (false);
				base.ResumeLayout (false);
				return;
			}
			
			private void insertChildNode (string strName)
			
			{
				TreeNode theTreeNode = this.node.Nodes.Add (strName);
				return;
			}
			
			private void insertParentNode (string strName)
			
			{
				this.node = new TreeNode (strName);
				return;
			}
			
			private void lbNoiSoi_DoubleClick (object sender, EventArgs e)
			
			{
				this.NoiSoiCheckRemove (this.lbNoiSoi.SelectedItem.ToString ());
				this.lbNoiSoi.Items.Remove (this.lbNoiSoi.SelectedItem);
				return;
			}
			
			private void lbNoiSoi_SelectedIndexChanged (object sender, EventArgs e)
			
			{
				this.toolTip1.SetToolTip (((Control) this.lbNoiSoi), this.lbNoiSoi.Text.ToString ());
				return;
			}
			
			private void LoadCayNoiSoi ()
			
			{
				ArrayList theArrayList;
				ArrayList theArrayList2;
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				int i;
				int i2;
				SqlDataAdapter theSqlDataAdapter2;
				DataSet theDataSet2;
				DataTable theDataTable2;
				int i3;
				SqlDataAdapter theSqlDataAdapter3;
				DataSet theDataSet3;
				DataTable theDataTable3;
				int i4;
				theArrayList = new ArrayList ();
				theArrayList2 = new ArrayList ();
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlDataAdapter = new SqlDataAdapter ("select distinct(nscISN), nscName from vw_InnerScan order by nscName", theSqlConnection);
				theDataSet = new DataSet ();
				int i5 = theSqlDataAdapter.Fill (theDataSet, "vw_InnerScan");
				if (theDataSet == null)
				{
					goto L_026B;
				}
				
			L_0042:
				
				{
				}
				theDataTable = theDataSet.Tables["vw_InnerScan"];
				i = 0;
				goto L_00A0;
				
			L_005A:
				
				{
				}
				int i6 = theArrayList.Add (theDataTable.Rows[i][0].ToString ());
				int i7 = theArrayList2.Add (theDataTable.Rows[i][1].ToString ());
				i++;
				
			L_00A0:
				
				{
				}
				if (i < theDataTable.Rows.Count)
				{
					goto L_005A;
				}
				i2 = 0;
				goto L_0252;
				
			L_00B8:
				
				{
				}
				this.insertParentNode (theArrayList2[i2].ToString ());
				theSqlDataAdapter2 = new SqlDataAdapter (string.Concat ("SELECT  distinct nscISN, nscName, nscISNChild, nscNameChild, Root1, Root2, Root3"
				+ " FROM vw_InnerScan WHERE nscISN=", theArrayList[i2].ToString (), " order by nscNameChild"), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i8 = theSqlDataAdapter2.Fill (theDataSet2, "InnerScan");
				theDataTable2 = theDataSet2.Tables["InnerScan"];
				i3 = 0;
				goto L_0222;
				
			L_0120:
				
				{
				}
				this.insertChildNode (theDataTable2.Rows[i3]["nscNameChild"].ToString ());
				if (theDataTable2.Rows[i3]["Root3"].ToString () == "")
				{
					goto L_021C;
				}
				theSqlDataAdapter3 = new SqlDataAdapter (string.Concat ("Select nscISNLevelThree, nscNameLevelThree from dbo.vw_InnerScan Where nscISNLev"
				+ "elThree is not null and nscISNChild=", theDataTable2.Rows[i3]["Root3"], " order by nscNameLevelThree"), theSqlConnection);
				theDataSet3 = new DataSet ();
				int i9 = theSqlDataAdapter3.Fill (theDataSet3, "InnerScan");
				theDataTable3 = theDataSet3.Tables["InnerScan"];
				i4 = 0;
				goto L_020C;
				
			L_01CC:
				
				{
				}
				TreeNode theTreeNode = this.node.Nodes[i3].Nodes.Add (theDataTable3.Rows[i4]["nscNameLevelThree"].ToString ());
				i4++;
				
			L_020C:
				
				{
				}
				if (i4 < theDataTable3.Rows.Count)
				{
					goto L_01CC;
				}
				
			L_021C:
				
				{
				}
				i3++;
				
			L_0222:
				
				{
				}
				if (i3 < theDataTable2.Rows.Count)
				{
					goto L_0120;
				}
				int i10 = this.tvNoiSoi.Nodes.Add (this.node);
				i2++;
				
			L_0252:
				
				{
				}
				if (i2 < theArrayList.Count)
				{
					goto L_00B8;
				}
				theSqlDataAdapter.Dispose ();
				theSqlConnection.Close ();
				
			L_026B:
				return;
			}
			
			private void NoiSoiCheck ()
			
			{
				SqlConnection theSqlConnection;
				ArrayList theArrayList;
				ArrayList theArrayList2;
				int i;
				int i2;
				int i3;
				SqlCommand theSqlCommand;
				SqlParameter theSqlParameter;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string theString;
				theSqlConnection = new SqlConnection (this.connStr);
				theArrayList = new ArrayList ();
				theArrayList2 = new ArrayList ();
				i = this.lbNoiSoi.Items.Count;
				i2 = 0;
				goto L_0075;
				
			L_002E:
				
				{
				}
				if (this.lbNoiSoi.Items[i2].ToString () == "")
				{
					goto L_006F;
				}
				int i4 = theArrayList.Add (this.lbNoiSoi.Items[i2].ToString ());
				
			L_006F:
				
				{
				}
				i2++;
				
			L_0075:
				
				{
				}
				if (i2 < i)
				{
					goto L_002E;
				}
				i3 = 0;
				goto L_1432;
				
			L_0082:
				
				{
				}
				theSqlCommand = new SqlCommand ("SELECT nscISN , nscISNRoot, nscName FROM InnerScan WHERE nscName=@nscNameChild ", theSqlConnection);
				theSqlParameter = new SqlParameter ("@nscNameChild", SqlDbType.NVarChar);
				theSqlParameter.Value = theArrayList[i3].ToString ();
				SqlParameter theSqlParameter2 = theSqlCommand.Parameters.Add (theSqlParameter);
				theSqlDataAdapter = new SqlDataAdapter (theSqlCommand);
				theDataSet = new DataSet ();
				int i5 = theSqlDataAdapter.Fill (theDataSet, "vw_InnerScan");
				theDataTable = theDataSet.Tables["vw_InnerScan"];
				theString = theArrayList[i3].ToString ();
				theString = theString.Substring (((int) (theString.IndexOf ('\u0028') + 1)), 1);
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "167")
				{
					goto L_032B;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_024F;
				}
				int i6 = this.txtOngTaiNgoaiT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ());
				if (this.txtOngTaiNgoaiT.Text != "")
				{
					goto L_01C7;
				}
				this.txtOngTaiNgoaiT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_024A;
				
			L_01C7:
				
				{
				}
				if (this.txtOngTaiNgoaiT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_020E;
				}
				this.txtOngTaiNgoaiT.Text = this.txtOngTaiNgoaiT.Text;
				goto L_024A;
				
			L_020E:
				
				{
				}
				this.txtOngTaiNgoaiT.Text = string.Concat (this.txtOngTaiNgoaiT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_024A:
				
				{
				}
				goto L_032B;
				
			L_024F:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_032B;
				}
				if (this.txtOngTaiNgoaiP.Text != "")
				{
					goto L_02A8;
				}
				this.txtOngTaiNgoaiP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_032B;
				
			L_02A8:
				
				{
				}
				if (this.txtOngTaiNgoaiP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_02EF;
				}
				this.txtOngTaiNgoaiP.Text = this.txtOngTaiNgoaiP.Text;
				goto L_032B;
				
			L_02EF:
				
				{
				}
				this.txtOngTaiNgoaiP.Text = string.Concat (this.txtOngTaiNgoaiP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_032B:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "168")
				{
					goto L_050E;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0432;
				}
				if (this.txtMangNhiT.Text != "")
				{
					goto L_03AF;
				}
				this.txtMangNhiT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0432;
				
			L_03AF:
				
				{
				}
				if (this.txtMangNhiT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_03F6;
				}
				this.txtMangNhiT.Text = this.txtMangNhiT.Text;
				goto L_0432;
				
			L_03F6:
				
				{
				}
				this.txtMangNhiT.Text = string.Concat (this.txtMangNhiT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0432:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_050E;
				}
				if (this.txtMangNhiP.Text != "")
				{
					goto L_048B;
				}
				this.txtMangNhiP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_050E;
				
			L_048B:
				
				{
				}
				if (this.txtMangNhiP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_04D2;
				}
				this.txtMangNhiP.Text = this.txtMangNhiP.Text;
				goto L_050E;
				
			L_04D2:
				
				{
				}
				this.txtMangNhiP.Text = string.Concat (this.txtMangNhiP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_050E:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "169")
				{
					goto L_06F1;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0615;
				}
				if (this.txtVachNganT.Text != "")
				{
					goto L_0592;
				}
				this.txtVachNganT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0615;
				
			L_0592:
				
				{
				}
				if (this.txtVachNganT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_05D9;
				}
				this.txtVachNganT.Text = this.txtVachNganT.Text;
				goto L_0615;
				
			L_05D9:
				
				{
				}
				this.txtVachNganT.Text = string.Concat (this.txtVachNganT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0615:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_06F1;
				}
				if (this.txtVachNganP.Text != "")
				{
					goto L_066E;
				}
				this.txtVachNganP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_06F1;
				
			L_066E:
				
				{
				}
				if (this.txtVachNganP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_06B5;
				}
				this.txtVachNganP.Text = this.txtVachNganP.Text;
				goto L_06F1;
				
			L_06B5:
				
				{
				}
				this.txtVachNganP.Text = string.Concat (this.txtVachNganP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_06F1:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "170")
				{
					goto L_08D4;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_07F8;
				}
				if (this.txtCuonDuoiT.Text != "")
				{
					goto L_0775;
				}
				this.txtCuonDuoiT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_07F8;
				
			L_0775:
				
				{
				}
				if (this.txtCuonDuoiT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_07BC;
				}
				this.txtCuonDuoiT.Text = this.txtCuonDuoiT.Text;
				goto L_07F8;
				
			L_07BC:
				
				{
				}
				this.txtCuonDuoiT.Text = string.Concat (this.txtCuonDuoiT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_07F8:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_08D4;
				}
				if (this.txtCuonDuoiP.Text != "")
				{
					goto L_0851;
				}
				this.txtCuonDuoiP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_08D4;
				
			L_0851:
				
				{
				}
				if (this.txtCuonDuoiP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_0898;
				}
				this.txtCuonDuoiP.Text = this.txtCuonDuoiP.Text;
				goto L_08D4;
				
			L_0898:
				
				{
				}
				this.txtCuonDuoiP.Text = string.Concat (this.txtCuonDuoiP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_08D4:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "171")
				{
					goto L_0AB7;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_09DB;
				}
				if (this.txtCuonGiuaT.Text != "")
				{
					goto L_0958;
				}
				this.txtCuonGiuaT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_09DB;
				
			L_0958:
				
				{
				}
				if (this.txtCuonGiuaT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_099F;
				}
				this.txtCuonGiuaT.Text = this.txtCuonGiuaT.Text;
				goto L_09DB;
				
			L_099F:
				
				{
				}
				this.txtCuonGiuaT.Text = string.Concat (this.txtCuonGiuaT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_09DB:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_0AB7;
				}
				if (this.txtCuonGiuaP.Text != "")
				{
					goto L_0A34;
				}
				this.txtCuonGiuaP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0AB7;
				
			L_0A34:
				
				{
				}
				if (this.txtCuonGiuaP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_0A7B;
				}
				this.txtCuonGiuaP.Text = this.txtCuonGiuaP.Text;
				goto L_0AB7;
				
			L_0A7B:
				
				{
				}
				this.txtCuonGiuaP.Text = string.Concat (this.txtCuonGiuaP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0AB7:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "172")
				{
					goto L_0C9A;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0BBE;
				}
				if (this.txtKheGiuaT.Text != "")
				{
					goto L_0B3B;
				}
				this.txtKheGiuaT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0BBE;
				
			L_0B3B:
				
				{
				}
				if (this.txtKheGiuaT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_0B82;
				}
				this.txtKheGiuaT.Text = this.txtKheGiuaT.Text;
				goto L_0BBE;
				
			L_0B82:
				
				{
				}
				this.txtKheGiuaT.Text = string.Concat (this.txtKheGiuaT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0BBE:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_0C9A;
				}
				if (this.txtKheGiuaP.Text != "")
				{
					goto L_0C17;
				}
				this.txtKheGiuaP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0C9A;
				
			L_0C17:
				
				{
				}
				if (this.txtKheGiuaP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_0C5E;
				}
				this.txtKheGiuaP.Text = this.txtKheGiuaP.Text;
				goto L_0C9A;
				
			L_0C5E:
				
				{
				}
				this.txtKheGiuaP.Text = string.Concat (this.txtKheGiuaP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0C9A:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "173")
				{
					goto L_0E7D;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0DA1;
				}
				if (this.txtKheTrenT.Text != "")
				{
					goto L_0D1E;
				}
				this.txtKheTrenT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0DA1;
				
			L_0D1E:
				
				{
				}
				if (this.txtKheTrenT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_0D65;
				}
				this.txtKheTrenT.Text = this.txtKheTrenT.Text;
				goto L_0DA1;
				
			L_0D65:
				
				{
				}
				this.txtKheTrenT.Text = string.Concat (this.txtKheTrenT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0DA1:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_0E7D;
				}
				if (this.txtKheTrenP.Text != "")
				{
					goto L_0DFA;
				}
				this.txtKheTrenP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0E7D;
				
			L_0DFA:
				
				{
				}
				if (this.txtKheTrenP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_0E41;
				}
				this.txtKheTrenP.Text = this.txtKheTrenP.Text;
				goto L_0E7D;
				
			L_0E41:
				
				{
				}
				this.txtKheTrenP.Text = string.Concat (this.txtKheTrenP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0E7D:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "174")
				{
					goto L_1060;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0F84;
				}
				if (this.txtMomMocT.Text != "")
				{
					goto L_0F01;
				}
				this.txtMomMocT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_0F84;
				
			L_0F01:
				
				{
				}
				if (this.txtMomMocT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_0F48;
				}
				this.txtMomMocT.Text = this.txtMomMocT.Text;
				goto L_0F84;
				
			L_0F48:
				
				{
				}
				this.txtMomMocT.Text = string.Concat (this.txtMomMocT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_0F84:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_1060;
				}
				if (this.txtMomMocP.Text != "")
				{
					goto L_0FDD;
				}
				this.txtMomMocP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_1060;
				
			L_0FDD:
				
				{
				}
				if (this.txtMomMocP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_1024;
				}
				this.txtMomMocP.Text = this.txtMomMocP.Text;
				goto L_1060;
				
			L_1024:
				
				{
				}
				this.txtMomMocP.Text = string.Concat (this.txtMomMocP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_1060:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "85")
				{
					goto L_1151;
				}
				if (this.txtHaHong.Text != "")
				{
					goto L_10CE;
				}
				this.txtHaHong.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_1151;
				
			L_10CE:
				
				{
				}
				if (this.txtHaHong.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_1115;
				}
				this.txtHaHong.Text = this.txtHaHong.Text;
				goto L_1151;
				
			L_1115:
				
				{
				}
				this.txtHaHong.Text = string.Concat (this.txtHaHong.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_1151:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "3")
				{
					goto L_1334;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_1258;
				}
				if (this.txtVomHongT.Text != "")
				{
					goto L_11D5;
				}
				this.txtVomHongT.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_1258;
				
			L_11D5:
				
				{
				}
				if (this.txtVomHongT.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_121C;
				}
				this.txtVomHongT.Text = this.txtVomHongT.Text;
				goto L_1258;
				
			L_121C:
				
				{
				}
				this.txtVomHongT.Text = string.Concat (this.txtVomHongT.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_1258:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_1334;
				}
				if (this.txtVomHongP.Text != "")
				{
					goto L_12B1;
				}
				this.txtVomHongP.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_1334;
				
			L_12B1:
				
				{
				}
				if (this.txtVomHongP.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_12F8;
				}
				this.txtVomHongP.Text = this.txtVomHongP.Text;
				goto L_1334;
				
			L_12F8:
				
				{
				}
				this.txtVomHongP.Text = string.Concat (this.txtVomHongP.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_1334:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "4")
				{
					goto L_1425;
				}
				if (this.txtThanhQuan.Text != "")
				{
					goto L_13A2;
				}
				this.txtThanhQuan.Text = theDataTable.Rows[0]["nscName"].ToString ();
				goto L_1425;
				
			L_13A2:
				
				{
				}
				if (this.txtThanhQuan.Text.IndexOf (theDataTable.Rows[0]["nscName"].ToString ()) < 0)
				{
					goto L_13E9;
				}
				this.txtThanhQuan.Text = this.txtThanhQuan.Text;
				goto L_1425;
				
			L_13E9:
				
				{
				}
				this.txtThanhQuan.Text = string.Concat (this.txtThanhQuan.Text, ",", theDataTable.Rows[0]["nscName"].ToString ());
				
			L_1425:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				i3++;
				
			L_1432:
				
				{
				}
				if (i3 < theArrayList.Count)
				{
					goto L_0082;
				}
				return;
			}
			
			private void NoiSoiCheckRemove (string TenNoiSoi)
			
			{
				SqlConnection theSqlConnection;
				SqlCommand theSqlCommand;
				SqlParameter theSqlParameter;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string theString;
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlCommand = new SqlCommand ("SELECT nscISN , nscISNRoot, nscName FROM InnerScan WHERE nscName=@nscNameChild ", theSqlConnection);
				theSqlParameter = new SqlParameter ("@nscNameChild", SqlDbType.NVarChar);
				theSqlParameter.Value = TenNoiSoi;
				SqlParameter theSqlParameter2 = theSqlCommand.Parameters.Add (theSqlParameter);
				theSqlDataAdapter = new SqlDataAdapter (theSqlCommand);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "vw_InnerScan");
				theDataTable = theDataSet.Tables["vw_InnerScan"];
				theString = TenNoiSoi;
				theString = theString.Substring (((int) (theString.IndexOf ('\u0028') + 1)), 1);
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "167")
				{
					goto L_03A0;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0228;
				}
				this.txtOngTaiNgoaiT.Text = this.txtOngTaiNgoaiT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtOngTaiNgoaiT.Text = this.txtOngTaiNgoaiT.Text.Trim ();
				this.txtOngTaiNgoaiT.Text = this.txtOngTaiNgoaiT.Text.Replace (",,", ",");
				if (! this.txtOngTaiNgoaiT.Text.EndsWith (","))
				{
					goto L_0182;
				}
				this.txtOngTaiNgoaiT.Text = this.txtOngTaiNgoaiT.Text.Substring (0, ((int) (this.txtOngTaiNgoaiT.Text.Length - 1)));
				
			L_0182:
				
				{
				}
				if (! this.txtOngTaiNgoaiT.Text.StartsWith (","))
				{
					goto L_01C7;
				}
				this.txtOngTaiNgoaiT.Text = this.txtOngTaiNgoaiT.Text.Substring (1, ((int) (this.txtOngTaiNgoaiT.Text.Length - 1)));
				
			L_01C7:
				
				{
				}
				if (! this.txtOngTaiNgoaiT.Text.StartsWith (","))
				{
					goto L_0223;
				}
				if (! this.txtOngTaiNgoaiT.Text.EndsWith (","))
				{
					goto L_0223;
				}
				this.txtOngTaiNgoaiT.Text = this.txtOngTaiNgoaiT.Text.Substring (2, ((int) (this.txtOngTaiNgoaiT.Text.Length - 1)));
				
			L_0223:
				
				{
				}
				goto L_03A0;
				
			L_0228:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_03A0;
				}
				this.txtOngTaiNgoaiP.Text = this.txtOngTaiNgoaiP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtOngTaiNgoaiP.Text = this.txtOngTaiNgoaiP.Text.Trim ();
				this.txtOngTaiNgoaiP.Text = this.txtOngTaiNgoaiP.Text.Replace (",,", ",");
				if (! this.txtOngTaiNgoaiP.Text.EndsWith (","))
				{
					goto L_02FF;
				}
				this.txtOngTaiNgoaiP.Text = this.txtOngTaiNgoaiP.Text.Substring (0, ((int) (this.txtOngTaiNgoaiP.Text.Length - 1)));
				
			L_02FF:
				
				{
				}
				if (! this.txtOngTaiNgoaiP.Text.StartsWith (","))
				{
					goto L_0344;
				}
				this.txtOngTaiNgoaiP.Text = this.txtOngTaiNgoaiP.Text.Substring (1, ((int) (this.txtOngTaiNgoaiP.Text.Length - 1)));
				
			L_0344:
				
				{
				}
				if (! this.txtOngTaiNgoaiP.Text.StartsWith (","))
				{
					goto L_03A0;
				}
				if (! this.txtOngTaiNgoaiP.Text.EndsWith (","))
				{
					goto L_03A0;
				}
				this.txtOngTaiNgoaiP.Text = this.txtOngTaiNgoaiP.Text.Substring (2, ((int) (this.txtOngTaiNgoaiP.Text.Length - 1)));
				
			L_03A0:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "168")
				{
					goto L_06BB;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0543;
				}
				this.txtMangNhiT.Text = this.txtMangNhiT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtMangNhiT.Text = this.txtMangNhiT.Text.Trim ();
				this.txtMangNhiT.Text = this.txtMangNhiT.Text.Replace (",,", ",");
				if (! this.txtMangNhiT.Text.EndsWith (","))
				{
					goto L_04A2;
				}
				this.txtMangNhiT.Text = this.txtMangNhiT.Text.Substring (0, ((int) (this.txtMangNhiT.Text.Length - 1)));
				
			L_04A2:
				
				{
				}
				if (! this.txtMangNhiT.Text.StartsWith (","))
				{
					goto L_04E7;
				}
				this.txtMangNhiT.Text = this.txtMangNhiT.Text.Substring (1, ((int) (this.txtMangNhiT.Text.Length - 1)));
				
			L_04E7:
				
				{
				}
				if (! this.txtMangNhiT.Text.StartsWith (","))
				{
					goto L_0543;
				}
				if (! this.txtMangNhiT.Text.EndsWith (","))
				{
					goto L_0543;
				}
				this.txtMangNhiT.Text = this.txtMangNhiT.Text.Substring (2, ((int) (this.txtMangNhiT.Text.Length - 1)));
				
			L_0543:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_06BB;
				}
				this.txtMangNhiP.Text = this.txtMangNhiP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtMangNhiP.Text = this.txtMangNhiP.Text.Trim ();
				this.txtMangNhiP.Text = this.txtMangNhiP.Text.Replace (",,", ",");
				if (! this.txtMangNhiP.Text.EndsWith (","))
				{
					goto L_061A;
				}
				this.txtMangNhiP.Text = this.txtMangNhiP.Text.Substring (0, ((int) (this.txtMangNhiP.Text.Length - 1)));
				
			L_061A:
				
				{
				}
				if (! this.txtMangNhiP.Text.StartsWith (","))
				{
					goto L_065F;
				}
				this.txtMangNhiP.Text = this.txtMangNhiP.Text.Substring (1, ((int) (this.txtMangNhiP.Text.Length - 1)));
				
			L_065F:
				
				{
				}
				if (! this.txtMangNhiP.Text.StartsWith (","))
				{
					goto L_06BB;
				}
				if (! this.txtMangNhiP.Text.EndsWith (","))
				{
					goto L_06BB;
				}
				this.txtMangNhiP.Text = this.txtMangNhiP.Text.Substring (2, ((int) (this.txtMangNhiP.Text.Length - 1)));
				
			L_06BB:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "169")
				{
					goto L_09D6;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_085E;
				}
				this.txtVachNganT.Text = this.txtVachNganT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtVachNganT.Text = this.txtVachNganT.Text.Trim ();
				this.txtVachNganT.Text = this.txtVachNganT.Text.Replace (",,", ",");
				if (! this.txtVachNganT.Text.EndsWith (","))
				{
					goto L_07BD;
				}
				this.txtVachNganT.Text = this.txtVachNganT.Text.Substring (0, ((int) (this.txtVachNganT.Text.Length - 1)));
				
			L_07BD:
				
				{
				}
				if (! this.txtVachNganT.Text.StartsWith (","))
				{
					goto L_0802;
				}
				this.txtVachNganT.Text = this.txtVachNganT.Text.Substring (1, ((int) (this.txtVachNganT.Text.Length - 1)));
				
			L_0802:
				
				{
				}
				if (! this.txtVachNganT.Text.StartsWith (","))
				{
					goto L_085E;
				}
				if (! this.txtVachNganT.Text.EndsWith (","))
				{
					goto L_085E;
				}
				this.txtVachNganT.Text = this.txtVachNganT.Text.Substring (2, ((int) (this.txtVachNganT.Text.Length - 1)));
				
			L_085E:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_09D6;
				}
				this.txtVachNganP.Text = this.txtVachNganP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtVachNganP.Text = this.txtVachNganP.Text.Trim ();
				this.txtVachNganP.Text = this.txtVachNganP.Text.Replace (",,", ",");
				if (! this.txtVachNganP.Text.EndsWith (","))
				{
					goto L_0935;
				}
				this.txtVachNganP.Text = this.txtVachNganP.Text.Substring (0, ((int) (this.txtVachNganP.Text.Length - 1)));
				
			L_0935:
				
				{
				}
				if (! this.txtVachNganP.Text.StartsWith (","))
				{
					goto L_097A;
				}
				this.txtVachNganP.Text = this.txtVachNganP.Text.Substring (1, ((int) (this.txtVachNganP.Text.Length - 1)));
				
			L_097A:
				
				{
				}
				if (! this.txtVachNganP.Text.StartsWith (","))
				{
					goto L_09D6;
				}
				if (! this.txtVachNganP.Text.EndsWith (","))
				{
					goto L_09D6;
				}
				this.txtVachNganP.Text = this.txtVachNganP.Text.Substring (2, ((int) (this.txtVachNganP.Text.Length - 1)));
				
			L_09D6:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "170")
				{
					goto L_0CF1;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0B79;
				}
				this.txtCuonDuoiT.Text = this.txtCuonDuoiT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtCuonDuoiT.Text = this.txtCuonDuoiT.Text.Trim ();
				this.txtCuonDuoiT.Text = this.txtCuonDuoiT.Text.Replace (",,", ",");
				if (! this.txtCuonDuoiT.Text.EndsWith (","))
				{
					goto L_0AD8;
				}
				this.txtCuonDuoiT.Text = this.txtCuonDuoiT.Text.Substring (0, ((int) (this.txtCuonDuoiT.Text.Length - 1)));
				
			L_0AD8:
				
				{
				}
				if (! this.txtCuonDuoiT.Text.StartsWith (","))
				{
					goto L_0B1D;
				}
				this.txtCuonDuoiT.Text = this.txtCuonDuoiT.Text.Substring (1, ((int) (this.txtCuonDuoiT.Text.Length - 1)));
				
			L_0B1D:
				
				{
				}
				if (! this.txtCuonDuoiT.Text.StartsWith (","))
				{
					goto L_0B79;
				}
				if (! this.txtCuonDuoiT.Text.EndsWith (","))
				{
					goto L_0B79;
				}
				this.txtCuonDuoiT.Text = this.txtCuonDuoiT.Text.Substring (2, ((int) (this.txtCuonDuoiT.Text.Length - 1)));
				
			L_0B79:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_0CF1;
				}
				this.txtCuonDuoiP.Text = this.txtCuonDuoiP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtCuonDuoiP.Text = this.txtCuonDuoiP.Text.Trim ();
				this.txtCuonDuoiP.Text = this.txtCuonDuoiP.Text.Replace (",,", ",");
				if (! this.txtCuonDuoiP.Text.EndsWith (","))
				{
					goto L_0C50;
				}
				this.txtCuonDuoiP.Text = this.txtCuonDuoiP.Text.Substring (0, ((int) (this.txtCuonDuoiP.Text.Length - 1)));
				
			L_0C50:
				
				{
				}
				if (! this.txtCuonDuoiT.Text.StartsWith (","))
				{
					goto L_0C95;
				}
				this.txtCuonDuoiP.Text = this.txtCuonDuoiP.Text.Substring (1, ((int) (this.txtCuonDuoiP.Text.Length - 1)));
				
			L_0C95:
				
				{
				}
				if (! this.txtCuonDuoiP.Text.StartsWith (","))
				{
					goto L_0CF1;
				}
				if (! this.txtCuonDuoiP.Text.EndsWith (","))
				{
					goto L_0CF1;
				}
				this.txtCuonDuoiP.Text = this.txtCuonDuoiP.Text.Substring (2, ((int) (this.txtCuonDuoiP.Text.Length - 1)));
				
			L_0CF1:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "171")
				{
					goto L_100C;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_0E94;
				}
				this.txtCuonGiuaT.Text = this.txtCuonGiuaT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtCuonGiuaT.Text = this.txtCuonGiuaT.Text.Trim ();
				this.txtCuonGiuaT.Text = this.txtCuonGiuaT.Text.Replace (",,", ",");
				if (! this.txtCuonGiuaT.Text.EndsWith (","))
				{
					goto L_0DF3;
				}
				this.txtCuonGiuaT.Text = this.txtCuonGiuaT.Text.Substring (0, ((int) (this.txtCuonGiuaT.Text.Length - 1)));
				
			L_0DF3:
				
				{
				}
				if (! this.txtCuonGiuaT.Text.StartsWith (","))
				{
					goto L_0E38;
				}
				this.txtCuonGiuaT.Text = this.txtCuonGiuaT.Text.Substring (1, ((int) (this.txtCuonGiuaT.Text.Length - 1)));
				
			L_0E38:
				
				{
				}
				if (! this.txtCuonGiuaT.Text.StartsWith (","))
				{
					goto L_0E94;
				}
				if (! this.txtCuonGiuaT.Text.EndsWith (","))
				{
					goto L_0E94;
				}
				this.txtCuonGiuaT.Text = this.txtCuonGiuaT.Text.Substring (2, ((int) (this.txtCuonGiuaT.Text.Length - 1)));
				
			L_0E94:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_100C;
				}
				this.txtCuonGiuaP.Text = this.txtCuonGiuaP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtCuonGiuaP.Text = this.txtCuonGiuaP.Text.Trim ();
				this.txtCuonGiuaP.Text = this.txtCuonGiuaP.Text.Replace (",,", ",");
				if (! this.txtCuonGiuaP.Text.EndsWith (","))
				{
					goto L_0F6B;
				}
				this.txtCuonGiuaP.Text = this.txtCuonGiuaP.Text.Substring (0, ((int) (this.txtCuonGiuaP.Text.Length - 1)));
				
			L_0F6B:
				
				{
				}
				if (! this.txtCuonGiuaP.Text.StartsWith (","))
				{
					goto L_0FB0;
				}
				this.txtCuonGiuaP.Text = this.txtCuonGiuaP.Text.Substring (1, ((int) (this.txtCuonGiuaP.Text.Length - 1)));
				
			L_0FB0:
				
				{
				}
				if (! this.txtCuonGiuaP.Text.StartsWith (","))
				{
					goto L_100C;
				}
				if (! this.txtCuonGiuaP.Text.EndsWith (","))
				{
					goto L_100C;
				}
				this.txtCuonGiuaP.Text = this.txtCuonGiuaP.Text.Substring (2, ((int) (this.txtCuonGiuaP.Text.Length - 1)));
				
			L_100C:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "172")
				{
					goto L_1327;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_11AF;
				}
				this.txtKheGiuaT.Text = this.txtKheGiuaT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtKheGiuaT.Text = this.txtKheGiuaT.Text.Trim ();
				this.txtKheGiuaT.Text = this.txtKheGiuaT.Text.Replace (",,", ",");
				if (! this.txtKheGiuaT.Text.EndsWith (","))
				{
					goto L_110E;
				}
				this.txtKheGiuaT.Text = this.txtKheGiuaT.Text.Substring (0, ((int) (this.txtKheGiuaT.Text.Length - 1)));
				
			L_110E:
				
				{
				}
				if (! this.txtKheGiuaT.Text.StartsWith (","))
				{
					goto L_1153;
				}
				this.txtKheGiuaT.Text = this.txtKheGiuaT.Text.Substring (1, ((int) (this.txtKheGiuaT.Text.Length - 1)));
				
			L_1153:
				
				{
				}
				if (! this.txtKheGiuaT.Text.StartsWith (","))
				{
					goto L_11AF;
				}
				if (! this.txtKheGiuaT.Text.EndsWith (","))
				{
					goto L_11AF;
				}
				this.txtKheGiuaT.Text = this.txtKheGiuaT.Text.Substring (2, ((int) (this.txtKheGiuaT.Text.Length - 1)));
				
			L_11AF:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_1327;
				}
				this.txtKheGiuaP.Text = this.txtKheGiuaP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtKheGiuaP.Text = this.txtKheGiuaP.Text.Trim ();
				this.txtKheGiuaP.Text = this.txtKheGiuaP.Text.Replace (",,", ",");
				if (! this.txtKheGiuaP.Text.EndsWith (","))
				{
					goto L_1286;
				}
				this.txtKheGiuaP.Text = this.txtKheGiuaP.Text.Substring (0, ((int) (this.txtKheGiuaP.Text.Length - 1)));
				
			L_1286:
				
				{
				}
				if (! this.txtKheGiuaP.Text.StartsWith (","))
				{
					goto L_12CB;
				}
				this.txtKheGiuaP.Text = this.txtKheGiuaP.Text.Substring (1, ((int) (this.txtKheGiuaP.Text.Length - 1)));
				
			L_12CB:
				
				{
				}
				if (! this.txtKheGiuaP.Text.StartsWith (","))
				{
					goto L_1327;
				}
				if (! this.txtKheGiuaP.Text.EndsWith (","))
				{
					goto L_1327;
				}
				this.txtKheGiuaP.Text = this.txtKheGiuaP.Text.Substring (2, ((int) (this.txtKheGiuaP.Text.Length - 1)));
				
			L_1327:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "173")
				{
					goto L_1642;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_14CA;
				}
				this.txtKheTrenT.Text = this.txtKheTrenT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtKheTrenT.Text = this.txtKheTrenT.Text.Trim ();
				this.txtKheTrenT.Text = this.txtKheTrenT.Text.Replace (",,", ",");
				if (! this.txtKheTrenT.Text.EndsWith (","))
				{
					goto L_1429;
				}
				this.txtKheTrenT.Text = this.txtKheTrenT.Text.Substring (0, ((int) (this.txtKheTrenT.Text.Length - 1)));
				
			L_1429:
				
				{
				}
				if (! this.txtKheTrenT.Text.StartsWith (","))
				{
					goto L_146E;
				}
				this.txtKheTrenT.Text = this.txtKheTrenT.Text.Substring (1, ((int) (this.txtKheTrenT.Text.Length - 1)));
				
			L_146E:
				
				{
				}
				if (! this.txtKheTrenT.Text.StartsWith (","))
				{
					goto L_14CA;
				}
				if (! this.txtKheTrenT.Text.EndsWith (","))
				{
					goto L_14CA;
				}
				this.txtKheTrenT.Text = this.txtKheTrenT.Text.Substring (2, ((int) (this.txtKheTrenT.Text.Length - 1)));
				
			L_14CA:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_1642;
				}
				this.txtKheTrenP.Text = this.txtKheTrenP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtKheTrenP.Text = this.txtKheTrenP.Text.Trim ();
				this.txtKheTrenP.Text = this.txtKheTrenP.Text.Replace (",,", ",");
				if (! this.txtKheTrenP.Text.EndsWith (","))
				{
					goto L_15A1;
				}
				this.txtKheTrenP.Text = this.txtKheTrenP.Text.Substring (0, ((int) (this.txtKheTrenP.Text.Length - 1)));
				
			L_15A1:
				
				{
				}
				if (! this.txtKheTrenP.Text.StartsWith (","))
				{
					goto L_15E6;
				}
				this.txtKheTrenP.Text = this.txtKheTrenP.Text.Substring (1, ((int) (this.txtKheTrenP.Text.Length - 1)));
				
			L_15E6:
				
				{
				}
				if (! this.txtKheTrenP.Text.StartsWith (","))
				{
					goto L_1642;
				}
				if (! this.txtKheTrenP.Text.EndsWith (","))
				{
					goto L_1642;
				}
				this.txtKheTrenP.Text = this.txtKheTrenP.Text.Substring (2, ((int) (this.txtKheTrenP.Text.Length - 1)));
				
			L_1642:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "174")
				{
					goto L_195D;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_17E5;
				}
				this.txtMomMocT.Text = this.txtMomMocT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtMomMocT.Text = this.txtMomMocT.Text.Trim ();
				this.txtMomMocT.Text = this.txtMomMocT.Text.Replace (",,", ",");
				if (! this.txtMomMocT.Text.EndsWith (","))
				{
					goto L_1744;
				}
				this.txtMomMocT.Text = this.txtMomMocT.Text.Substring (0, ((int) (this.txtMomMocT.Text.Length - 1)));
				
			L_1744:
				
				{
				}
				if (! this.txtMomMocT.Text.StartsWith (","))
				{
					goto L_1789;
				}
				this.txtMomMocT.Text = this.txtMomMocT.Text.Substring (1, ((int) (this.txtMomMocT.Text.Length - 1)));
				
			L_1789:
				
				{
				}
				if (! this.txtMomMocT.Text.StartsWith (","))
				{
					goto L_17E5;
				}
				if (! this.txtMomMocT.Text.EndsWith (","))
				{
					goto L_17E5;
				}
				this.txtMomMocT.Text = this.txtMomMocT.Text.Substring (2, ((int) (this.txtMomMocT.Text.Length - 1)));
				
			L_17E5:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_195D;
				}
				this.txtMomMocP.Text = this.txtMomMocP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtMomMocP.Text = this.txtMomMocP.Text.Trim ();
				this.txtMomMocP.Text = this.txtMomMocP.Text.Replace (",,", ",");
				if (! this.txtMomMocP.Text.EndsWith (","))
				{
					goto L_18BC;
				}
				this.txtMomMocP.Text = this.txtMomMocP.Text.Substring (0, ((int) (this.txtMomMocP.Text.Length - 1)));
				
			L_18BC:
				
				{
				}
				if (! this.txtMomMocP.Text.StartsWith (","))
				{
					goto L_1901;
				}
				this.txtMomMocP.Text = this.txtMomMocP.Text.Substring (1, ((int) (this.txtMomMocP.Text.Length - 1)));
				
			L_1901:
				
				{
				}
				if (! this.txtMomMocP.Text.StartsWith (","))
				{
					goto L_195D;
				}
				if (! this.txtMomMocP.Text.EndsWith (","))
				{
					goto L_195D;
				}
				this.txtMomMocP.Text = this.txtMomMocP.Text.Substring (2, ((int) (this.txtMomMocP.Text.Length - 1)));
				
			L_195D:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "85")
				{
					goto L_1AEA;
				}
				this.txtHaHong.Text = this.txtHaHong.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtHaHong.Text = this.txtHaHong.Text.Trim ();
				this.txtHaHong.Text = this.txtHaHong.Text.Replace (",,", ",");
				if (! this.txtHaHong.Text.EndsWith (","))
				{
					goto L_1A49;
				}
				this.txtHaHong.Text = this.txtHaHong.Text.Substring (0, ((int) (this.txtHaHong.Text.Length - 1)));
				
			L_1A49:
				
				{
				}
				if (! this.txtHaHong.Text.StartsWith (","))
				{
					goto L_1A8E;
				}
				this.txtHaHong.Text = this.txtHaHong.Text.Substring (1, ((int) (this.txtHaHong.Text.Length - 1)));
				
			L_1A8E:
				
				{
				}
				if (! this.txtHaHong.Text.StartsWith (","))
				{
					goto L_1AEA;
				}
				if (! this.txtHaHong.Text.EndsWith (","))
				{
					goto L_1AEA;
				}
				this.txtHaHong.Text = this.txtHaHong.Text.Substring (2, ((int) (this.txtHaHong.Text.Length - 1)));
				
			L_1AEA:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "3")
				{
					goto L_1E05;
				}
				if (theString.ToUpper () != "T")
				{
					goto L_1C8D;
				}
				this.txtVomHongT.Text = this.txtVomHongT.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtVomHongT.Text = this.txtVomHongT.Text.Trim ();
				this.txtVomHongT.Text = this.txtVomHongT.Text.Replace (",,", ",");
				if (! this.txtVomHongT.Text.EndsWith (","))
				{
					goto L_1BEC;
				}
				this.txtVomHongT.Text = this.txtVomHongT.Text.Substring (0, ((int) (this.txtVomHongT.Text.Length - 1)));
				
			L_1BEC:
				
				{
				}
				if (! this.txtVomHongT.Text.StartsWith (","))
				{
					goto L_1C31;
				}
				this.txtVomHongT.Text = this.txtVomHongT.Text.Substring (1, ((int) (this.txtVomHongT.Text.Length - 1)));
				
			L_1C31:
				
				{
				}
				if (! this.txtVomHongT.Text.StartsWith (","))
				{
					goto L_1C8D;
				}
				if (! this.txtVomHongT.Text.EndsWith (","))
				{
					goto L_1C8D;
				}
				this.txtVomHongT.Text = this.txtVomHongT.Text.Substring (2, ((int) (this.txtVomHongT.Text.Length - 1)));
				
			L_1C8D:
				
				{
				}
				if (theString.ToUpper () != "P")
				{
					goto L_1E05;
				}
				this.txtVomHongP.Text = this.txtVomHongP.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtVomHongP.Text = this.txtVomHongP.Text.Trim ();
				this.txtVomHongP.Text = this.txtVomHongP.Text.Replace (",,", ",");
				if (! this.txtVomHongP.Text.EndsWith (","))
				{
					goto L_1D64;
				}
				this.txtVomHongP.Text = this.txtVomHongP.Text.Substring (0, ((int) (this.txtVomHongP.Text.Length - 1)));
				
			L_1D64:
				
				{
				}
				if (! this.txtVomHongP.Text.StartsWith (","))
				{
					goto L_1DA9;
				}
				this.txtVomHongP.Text = this.txtVomHongP.Text.Substring (1, ((int) (this.txtVomHongP.Text.Length - 1)));
				
			L_1DA9:
				
				{
				}
				if (! this.txtVomHongP.Text.StartsWith (","))
				{
					goto L_1E05;
				}
				if (! this.txtVomHongP.Text.EndsWith (","))
				{
					goto L_1E05;
				}
				this.txtVomHongP.Text = this.txtVomHongT.Text.Substring (2, ((int) (this.txtVomHongP.Text.Length - 1)));
				
			L_1E05:
				
				{
				}
				if (theDataTable.Rows[0]["nscISNRoot"].ToString () != "4")
				{
					goto L_1F98;
				}
				this.txtThanhQuan.Text = this.txtThanhQuan.Text.Replace (theDataTable.Rows[0]["nscName"].ToString (), "");
				this.txtThanhQuan.Text = this.txtThanhQuan.Text.Trim ();
				this.txtThanhQuan.Text = this.txtThanhQuan.Text.Replace (",,", ",");
				if (! this.txtThanhQuan.Text.EndsWith (","))
				{
					goto L_1EF1;
				}
				this.txtThanhQuan.Text = this.txtThanhQuan.Text.Substring (0, ((int) (this.txtThanhQuan.Text.Length - 1)));
				
			L_1EF1:
				
				{
				}
				if (! this.txtThanhQuan.Text.StartsWith (","))
				{
					goto L_1F36;
				}
				this.txtThanhQuan.Text = this.txtThanhQuan.Text.Substring (1, ((int) (this.txtThanhQuan.Text.Length - 1)));
				
			L_1F36:
				
				{
				}
				if (! this.txtThanhQuan.Text.StartsWith (","))
				{
					goto L_1F92;
				}
				if (! this.txtThanhQuan.Text.EndsWith (","))
				{
					goto L_1F92;
				}
				this.txtThanhQuan.Text = this.txtThanhQuan.Text.Substring (2, ((int) (this.txtThanhQuan.Text.Length - 1)));
				
			L_1F92:
				
				{
				}
				theSqlDataAdapter.Dispose ();
				
			L_1F98:
				return;
			}
			
			private void NoiSoiNgoaiDS ()
			
			{
				string[] theStringArray;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				string[] theStringArray2;
				SqlDbType[] theSqlDbTypeArray2;
				object[] theObjectArray2;
				string[] theStringArray3;
				SqlDbType[] theSqlDbTypeArray3;
				object[] theObjectArray3;
				string[] theStringArray4;
				SqlDbType[] theSqlDbTypeArray4;
				object[] theObjectArray4;
				string[] theStringArray5;
				SqlDbType[] theSqlDbTypeArray5;
				object[] theObjectArray5;
				string[] theStringArray6;
				SqlDbType[] theSqlDbTypeArray6;
				object[] theObjectArray6;
				string[] theStringArray7;
				SqlDbType[] theSqlDbTypeArray7;
				object[] theObjectArray7;
				string[] theStringArray8;
				SqlDbType[] theSqlDbTypeArray8;
				object[] theObjectArray8;
				string[] theStringArray9;
				SqlDbType[] theSqlDbTypeArray9;
				object[] theObjectArray9;
				string[] theStringArray10;
				SqlDbType[] theSqlDbTypeArray10;
				object[] theObjectArray10;
				string[] theStringArray11;
				SqlDbType[] theSqlDbTypeArray11;
				object[] theObjectArray11;
				string[] theStringArray12;
				SqlDbType[] theSqlDbTypeArray12;
				object[] theObjectArray12;
				string[] theStringArray13;
				SqlDbType[] theSqlDbTypeArray13;
				object[] theObjectArray13;
				string[] theStringArray14;
				SqlDbType[] theSqlDbTypeArray14;
				object[] theObjectArray14;
				string[] theStringArray15;
				SqlDbType[] theSqlDbTypeArray15;
				object[] theObjectArray15;
				string[] theStringArray16;
				SqlDbType[] theSqlDbTypeArray16;
				object[] theObjectArray16;
				string[] theStringArray17;
				SqlDbType[] theSqlDbTypeArray17;
				object[] theObjectArray17;
				string[] theStringArray18;
				SqlDbType[] theSqlDbTypeArray18;
				object[] theObjectArray18;
				string[] theStringArray19;
				SqlDbType[] theSqlDbTypeArray19;
				object[] theObjectArray19;
				string[] theStringArray20;
				SqlDbType[] theSqlDbTypeArray20;
				object[] theObjectArray20;
				if (! this.CheckInputData ())
				{
					goto L_18C0;
				}
				if (this.txtOngTaiNgoaiP.Text == "")
				{
					goto L_012C;
				}
				SqlConnection theSqlConnection = this.db.CreateConnections ();
				theStringArray = new string[8];
				theStringArray[0] = "@clrISN";
				theStringArray[1] = "@nscISN";
				theStringArray[2] = "@nscISNRoot";
				theStringArray[3] = "@srtScanOutList";
				theStringArray[4] = "@srtOpinion";
				theStringArray[5] = "@srtSuggestion";
				theStringArray[6] = "@srtPositionStatus";
				theStringArray[7] = "@srtScanListString";
				theSqlDbTypeArray = new SqlDbType[8];
				theSqlDbTypeArray[0] = SqlDbType.Int;
				theSqlDbTypeArray[1] = SqlDbType.Int;
				theSqlDbTypeArray[2] = SqlDbType.Int;
				theSqlDbTypeArray[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray[6] = SqlDbType.Int;
				theSqlDbTypeArray[7] = SqlDbType.NVarChar;
				theObjectArray = new object[8];
				theObjectArray[0] = this._clrISN;
				theObjectArray[1] = 0;
				theObjectArray[2] = 167;
				theObjectArray[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray[6] = 2;
				theObjectArray[7] = this.txtOngTaiNgoaiP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray, theSqlDbTypeArray, theObjectArray);
				
			L_012C:
				
				{
				}
				if (this.txtOngTaiNgoaiT.Text == "")
				{
					goto L_0261;
				}
				SqlConnection theSqlConnection2 = this.db.CreateConnections ();
				theStringArray2 = new string[8];
				theStringArray2[0] = "@clrISN";
				theStringArray2[1] = "@nscISN";
				theStringArray2[2] = "@nscISNRoot";
				theStringArray2[3] = "@srtScanOutList";
				theStringArray2[4] = "@srtOpinion";
				theStringArray2[5] = "@srtSuggestion";
				theStringArray2[6] = "@srtPositionStatus";
				theStringArray2[7] = "@srtScanListString";
				theSqlDbTypeArray2 = new SqlDbType[8];
				theSqlDbTypeArray2[0] = SqlDbType.Int;
				theSqlDbTypeArray2[1] = SqlDbType.Int;
				theSqlDbTypeArray2[2] = SqlDbType.Int;
				theSqlDbTypeArray2[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray2[6] = SqlDbType.Int;
				theSqlDbTypeArray2[7] = SqlDbType.NVarChar;
				theObjectArray2 = new object[8];
				theObjectArray2[0] = this._clrISN;
				theObjectArray2[1] = 0;
				theObjectArray2[2] = 167;
				theObjectArray2[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray2[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray2[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray2[6] = 1;
				theObjectArray2[7] = this.txtOngTaiNgoaiT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray2, theSqlDbTypeArray2, theObjectArray2);
				
			L_0261:
				
				{
				}
				if (this.txtMangNhiP.Text == "168")
				{
					goto L_03A0;
				}
				SqlConnection theSqlConnection3 = this.db.CreateConnections ();
				theStringArray3 = new string[8];
				theStringArray3[0] = "@clrISN";
				theStringArray3[1] = "@nscISN";
				theStringArray3[2] = "@nscISNRoot";
				theStringArray3[3] = "@srtScanOutList";
				theStringArray3[4] = "@srtOpinion";
				theStringArray3[5] = "@srtSuggestion";
				theStringArray3[6] = "@srtPositionStatus";
				theStringArray3[7] = "@srtScanListString";
				theSqlDbTypeArray3 = new SqlDbType[8];
				theSqlDbTypeArray3[0] = SqlDbType.Int;
				theSqlDbTypeArray3[1] = SqlDbType.Int;
				theSqlDbTypeArray3[2] = SqlDbType.Int;
				theSqlDbTypeArray3[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray3[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray3[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray3[6] = SqlDbType.Int;
				theSqlDbTypeArray3[7] = SqlDbType.NVarChar;
				theObjectArray3 = new object[8];
				theObjectArray3[0] = this._clrISN;
				theObjectArray3[1] = 0;
				theObjectArray3[2] = 168;
				theObjectArray3[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray3[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray3[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray3[6] = 2;
				theObjectArray3[7] = this.txtMangNhiP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray3, theSqlDbTypeArray3, theObjectArray3);
				
			L_03A0:
				
				{
				}
				if (this.txtMangNhiT.Text == "168")
				{
					goto L_04DF;
				}
				SqlConnection theSqlConnection4 = this.db.CreateConnections ();
				theStringArray4 = new string[8];
				theStringArray4[0] = "@clrISN";
				theStringArray4[1] = "@nscISN";
				theStringArray4[2] = "@nscISNRoot";
				theStringArray4[3] = "@srtScanOutList";
				theStringArray4[4] = "@srtOpinion";
				theStringArray4[5] = "@srtSuggestion";
				theStringArray4[6] = "@srtPositionStatus";
				theStringArray4[7] = "@srtScanListString";
				theSqlDbTypeArray4 = new SqlDbType[8];
				theSqlDbTypeArray4[0] = SqlDbType.Int;
				theSqlDbTypeArray4[1] = SqlDbType.Int;
				theSqlDbTypeArray4[2] = SqlDbType.Int;
				theSqlDbTypeArray4[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray4[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray4[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray4[6] = SqlDbType.Int;
				theSqlDbTypeArray4[7] = SqlDbType.NVarChar;
				theObjectArray4 = new object[8];
				theObjectArray4[0] = this._clrISN;
				theObjectArray4[1] = 0;
				theObjectArray4[2] = 168;
				theObjectArray4[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray4[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray4[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray4[6] = 1;
				theObjectArray4[7] = this.txtMangNhiT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray4, theSqlDbTypeArray4, theObjectArray4);
				
			L_04DF:
				
				{
				}
				if (this.txtCuonDuoiP.Text == "")
				{
					goto L_061E;
				}
				SqlConnection theSqlConnection5 = this.db.CreateConnections ();
				theStringArray5 = new string[8];
				theStringArray5[0] = "@clrISN";
				theStringArray5[1] = "@nscISN";
				theStringArray5[2] = "@nscISNRoot";
				theStringArray5[3] = "@srtScanOutList";
				theStringArray5[4] = "@srtOpinion";
				theStringArray5[5] = "@srtSuggestion";
				theStringArray5[6] = "@srtPositionStatus";
				theStringArray5[7] = "@srtScanListString";
				theSqlDbTypeArray5 = new SqlDbType[8];
				theSqlDbTypeArray5[0] = SqlDbType.Int;
				theSqlDbTypeArray5[1] = SqlDbType.Int;
				theSqlDbTypeArray5[2] = SqlDbType.Int;
				theSqlDbTypeArray5[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray5[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray5[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray5[6] = SqlDbType.Int;
				theSqlDbTypeArray5[7] = SqlDbType.NVarChar;
				theObjectArray5 = new object[8];
				theObjectArray5[0] = this._clrISN;
				theObjectArray5[1] = 0;
				theObjectArray5[2] = 170;
				theObjectArray5[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray5[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray5[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray5[6] = 2;
				theObjectArray5[7] = this.txtCuonDuoiP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray5, theSqlDbTypeArray5, theObjectArray5);
				
			L_061E:
				
				{
				}
				if (this.txtCuonDuoiT.Text == "")
				{
					goto L_075D;
				}
				SqlConnection theSqlConnection6 = this.db.CreateConnections ();
				theStringArray6 = new string[8];
				theStringArray6[0] = "@clrISN";
				theStringArray6[1] = "@nscISN";
				theStringArray6[2] = "@nscISNRoot";
				theStringArray6[3] = "@srtScanOutList";
				theStringArray6[4] = "@srtOpinion";
				theStringArray6[5] = "@srtSuggestion";
				theStringArray6[6] = "@srtPositionStatus";
				theStringArray6[7] = "@srtScanListString";
				theSqlDbTypeArray6 = new SqlDbType[8];
				theSqlDbTypeArray6[0] = SqlDbType.Int;
				theSqlDbTypeArray6[1] = SqlDbType.Int;
				theSqlDbTypeArray6[2] = SqlDbType.Int;
				theSqlDbTypeArray6[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray6[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray6[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray6[6] = SqlDbType.Int;
				theSqlDbTypeArray6[7] = SqlDbType.NVarChar;
				theObjectArray6 = new object[8];
				theObjectArray6[0] = this._clrISN;
				theObjectArray6[1] = 0;
				theObjectArray6[2] = 170;
				theObjectArray6[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray6[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray6[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray6[6] = 1;
				theObjectArray6[7] = this.txtCuonDuoiT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray6, theSqlDbTypeArray6, theObjectArray6);
				
			L_075D:
				
				{
				}
				if (this.txtVachNganP.Text == "")
				{
					goto L_089C;
				}
				SqlConnection theSqlConnection7 = this.db.CreateConnections ();
				theStringArray7 = new string[8];
				theStringArray7[0] = "@clrISN";
				theStringArray7[1] = "@nscISN";
				theStringArray7[2] = "@nscISNRoot";
				theStringArray7[3] = "@srtScanOutList";
				theStringArray7[4] = "@srtOpinion";
				theStringArray7[5] = "@srtSuggestion";
				theStringArray7[6] = "@srtPositionStatus";
				theStringArray7[7] = "@srtScanListString";
				theSqlDbTypeArray7 = new SqlDbType[8];
				theSqlDbTypeArray7[0] = SqlDbType.Int;
				theSqlDbTypeArray7[1] = SqlDbType.Int;
				theSqlDbTypeArray7[2] = SqlDbType.Int;
				theSqlDbTypeArray7[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray7[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray7[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray7[6] = SqlDbType.Int;
				theSqlDbTypeArray7[7] = SqlDbType.NVarChar;
				theObjectArray7 = new object[8];
				theObjectArray7[0] = this._clrISN;
				theObjectArray7[1] = 0;
				theObjectArray7[2] = 169;
				theObjectArray7[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray7[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray7[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray7[6] = 2;
				theObjectArray7[7] = this.txtVachNganP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray7, theSqlDbTypeArray7, theObjectArray7);
				
			L_089C:
				
				{
				}
				if (this.txtVachNganT.Text == "")
				{
					goto L_09DB;
				}
				SqlConnection theSqlConnection8 = this.db.CreateConnections ();
				theStringArray8 = new string[8];
				theStringArray8[0] = "@clrISN";
				theStringArray8[1] = "@nscISN";
				theStringArray8[2] = "@nscISNRoot";
				theStringArray8[3] = "@srtScanOutList";
				theStringArray8[4] = "@srtOpinion";
				theStringArray8[5] = "@srtSuggestion";
				theStringArray8[6] = "@srtPositionStatus";
				theStringArray8[7] = "@srtScanListString";
				theSqlDbTypeArray8 = new SqlDbType[8];
				theSqlDbTypeArray8[0] = SqlDbType.Int;
				theSqlDbTypeArray8[1] = SqlDbType.Int;
				theSqlDbTypeArray8[2] = SqlDbType.Int;
				theSqlDbTypeArray8[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray8[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray8[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray8[6] = SqlDbType.Int;
				theSqlDbTypeArray8[7] = SqlDbType.NVarChar;
				theObjectArray8 = new object[8];
				theObjectArray8[0] = this._clrISN;
				theObjectArray8[1] = 0;
				theObjectArray8[2] = 169;
				theObjectArray8[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray8[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray8[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray8[6] = 1;
				theObjectArray8[7] = this.txtVachNganT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray8, theSqlDbTypeArray8, theObjectArray8);
				
			L_09DB:
				
				{
				}
				if (this.txtCuonGiuaP.Text == "")
				{
					goto L_0B1A;
				}
				SqlConnection theSqlConnection9 = this.db.CreateConnections ();
				theStringArray9 = new string[8];
				theStringArray9[0] = "@clrISN";
				theStringArray9[1] = "@nscISN";
				theStringArray9[2] = "@nscISNRoot";
				theStringArray9[3] = "@srtScanOutList";
				theStringArray9[4] = "@srtOpinion";
				theStringArray9[5] = "@srtSuggestion";
				theStringArray9[6] = "@srtPositionStatus";
				theStringArray9[7] = "@srtScanListString";
				theSqlDbTypeArray9 = new SqlDbType[8];
				theSqlDbTypeArray9[0] = SqlDbType.Int;
				theSqlDbTypeArray9[1] = SqlDbType.Int;
				theSqlDbTypeArray9[2] = SqlDbType.Int;
				theSqlDbTypeArray9[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray9[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray9[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray9[6] = SqlDbType.Int;
				theSqlDbTypeArray9[7] = SqlDbType.NVarChar;
				theObjectArray9 = new object[8];
				theObjectArray9[0] = this._clrISN;
				theObjectArray9[1] = 0;
				theObjectArray9[2] = 171;
				theObjectArray9[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray9[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray9[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray9[6] = 2;
				theObjectArray9[7] = this.txtCuonGiuaP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray9, theSqlDbTypeArray9, theObjectArray9);
				
			L_0B1A:
				
				{
				}
				if (this.txtCuonGiuaT.Text == "")
				{
					goto L_0C59;
				}
				SqlConnection theSqlConnection10 = this.db.CreateConnections ();
				theStringArray10 = new string[8];
				theStringArray10[0] = "@clrISN";
				theStringArray10[1] = "@nscISN";
				theStringArray10[2] = "@nscISNRoot";
				theStringArray10[3] = "@srtScanOutList";
				theStringArray10[4] = "@srtOpinion";
				theStringArray10[5] = "@srtSuggestion";
				theStringArray10[6] = "@srtPositionStatus";
				theStringArray10[7] = "@srtScanListString";
				theSqlDbTypeArray10 = new SqlDbType[8];
				theSqlDbTypeArray10[0] = SqlDbType.Int;
				theSqlDbTypeArray10[1] = SqlDbType.Int;
				theSqlDbTypeArray10[2] = SqlDbType.Int;
				theSqlDbTypeArray10[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray10[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray10[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray10[6] = SqlDbType.Int;
				theSqlDbTypeArray10[7] = SqlDbType.NVarChar;
				theObjectArray10 = new object[8];
				theObjectArray10[0] = this._clrISN;
				theObjectArray10[1] = 0;
				theObjectArray10[2] = 171;
				theObjectArray10[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray10[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray10[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray10[6] = 1;
				theObjectArray10[7] = this.txtCuonGiuaT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray10, theSqlDbTypeArray10, theObjectArray10);
				
			L_0C59:
				
				{
				}
				if (this.txtKheGiuaP.Text == "")
				{
					goto L_0D98;
				}
				SqlConnection theSqlConnection11 = this.db.CreateConnections ();
				theStringArray11 = new string[8];
				theStringArray11[0] = "@clrISN";
				theStringArray11[1] = "@nscISN";
				theStringArray11[2] = "@nscISNRoot";
				theStringArray11[3] = "@srtScanOutList";
				theStringArray11[4] = "@srtOpinion";
				theStringArray11[5] = "@srtSuggestion";
				theStringArray11[6] = "@srtPositionStatus";
				theStringArray11[7] = "@srtScanListString";
				theSqlDbTypeArray11 = new SqlDbType[8];
				theSqlDbTypeArray11[0] = SqlDbType.Int;
				theSqlDbTypeArray11[1] = SqlDbType.Int;
				theSqlDbTypeArray11[2] = SqlDbType.Int;
				theSqlDbTypeArray11[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray11[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray11[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray11[6] = SqlDbType.Int;
				theSqlDbTypeArray11[7] = SqlDbType.NVarChar;
				theObjectArray11 = new object[8];
				theObjectArray11[0] = this._clrISN;
				theObjectArray11[1] = 0;
				theObjectArray11[2] = 172;
				theObjectArray11[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray11[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray11[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray11[6] = 2;
				theObjectArray11[7] = this.txtKheGiuaP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray11, theSqlDbTypeArray11, theObjectArray11);
				
			L_0D98:
				
				{
				}
				if (this.txtKheGiuaP.Text == "")
				{
					goto L_0ED7;
				}
				SqlConnection theSqlConnection12 = this.db.CreateConnections ();
				theStringArray12 = new string[8];
				theStringArray12[0] = "@clrISN";
				theStringArray12[1] = "@nscISN";
				theStringArray12[2] = "@nscISNRoot";
				theStringArray12[3] = "@srtScanOutList";
				theStringArray12[4] = "@srtOpinion";
				theStringArray12[5] = "@srtSuggestion";
				theStringArray12[6] = "@srtPositionStatus";
				theStringArray12[7] = "@srtScanListString";
				theSqlDbTypeArray12 = new SqlDbType[8];
				theSqlDbTypeArray12[0] = SqlDbType.Int;
				theSqlDbTypeArray12[1] = SqlDbType.Int;
				theSqlDbTypeArray12[2] = SqlDbType.Int;
				theSqlDbTypeArray12[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray12[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray12[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray12[6] = SqlDbType.Int;
				theSqlDbTypeArray12[7] = SqlDbType.NVarChar;
				theObjectArray12 = new object[8];
				theObjectArray12[0] = this._clrISN;
				theObjectArray12[1] = 0;
				theObjectArray12[2] = 172;
				theObjectArray12[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray12[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray12[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray12[6] = 1;
				theObjectArray12[7] = this.txtKheGiuaT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray12, theSqlDbTypeArray12, theObjectArray12);
				
			L_0ED7:
				
				{
				}
				if (this.txtKheTrenP.Text == "")
				{
					goto L_1016;
				}
				SqlConnection theSqlConnection13 = this.db.CreateConnections ();
				theStringArray13 = new string[8];
				theStringArray13[0] = "@clrISN";
				theStringArray13[1] = "@nscISN";
				theStringArray13[2] = "@nscISNRoot";
				theStringArray13[3] = "@srtScanOutList";
				theStringArray13[4] = "@srtOpinion";
				theStringArray13[5] = "@srtSuggestion";
				theStringArray13[6] = "@srtPositionStatus";
				theStringArray13[7] = "@srtScanListString";
				theSqlDbTypeArray13 = new SqlDbType[8];
				theSqlDbTypeArray13[0] = SqlDbType.Int;
				theSqlDbTypeArray13[1] = SqlDbType.Int;
				theSqlDbTypeArray13[2] = SqlDbType.Int;
				theSqlDbTypeArray13[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray13[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray13[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray13[6] = SqlDbType.Int;
				theSqlDbTypeArray13[7] = SqlDbType.NVarChar;
				theObjectArray13 = new object[8];
				theObjectArray13[0] = this._clrISN;
				theObjectArray13[1] = 0;
				theObjectArray13[2] = 173;
				theObjectArray13[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray13[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray13[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray13[6] = 2;
				theObjectArray13[7] = this.txtKheTrenP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray13, theSqlDbTypeArray13, theObjectArray13);
				
			L_1016:
				
				{
				}
				if (this.txtKheTrenT.Text == "")
				{
					goto L_1155;
				}
				SqlConnection theSqlConnection14 = this.db.CreateConnections ();
				theStringArray14 = new string[8];
				theStringArray14[0] = "@clrISN";
				theStringArray14[1] = "@nscISN";
				theStringArray14[2] = "@nscISNRoot";
				theStringArray14[3] = "@srtScanOutList";
				theStringArray14[4] = "@srtOpinion";
				theStringArray14[5] = "@srtSuggestion";
				theStringArray14[6] = "@srtPositionStatus";
				theStringArray14[7] = "@srtScanListString";
				theSqlDbTypeArray14 = new SqlDbType[8];
				theSqlDbTypeArray14[0] = SqlDbType.Int;
				theSqlDbTypeArray14[1] = SqlDbType.Int;
				theSqlDbTypeArray14[2] = SqlDbType.Int;
				theSqlDbTypeArray14[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray14[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray14[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray14[6] = SqlDbType.Int;
				theSqlDbTypeArray14[7] = SqlDbType.NVarChar;
				theObjectArray14 = new object[8];
				theObjectArray14[0] = this._clrISN;
				theObjectArray14[1] = 0;
				theObjectArray14[2] = 173;
				theObjectArray14[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray14[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray14[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray14[6] = 1;
				theObjectArray14[7] = this.txtKheTrenT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray14, theSqlDbTypeArray14, theObjectArray14);
				
			L_1155:
				
				{
				}
				if (this.txtMomMocP.Text == "")
				{
					goto L_1294;
				}
				SqlConnection theSqlConnection15 = this.db.CreateConnections ();
				theStringArray15 = new string[8];
				theStringArray15[0] = "@clrISN";
				theStringArray15[1] = "@nscISN";
				theStringArray15[2] = "@nscISNRoot";
				theStringArray15[3] = "@srtScanOutList";
				theStringArray15[4] = "@srtOpinion";
				theStringArray15[5] = "@srtSuggestion";
				theStringArray15[6] = "@srtPositionStatus";
				theStringArray15[7] = "@srtScanListString";
				theSqlDbTypeArray15 = new SqlDbType[8];
				theSqlDbTypeArray15[0] = SqlDbType.Int;
				theSqlDbTypeArray15[1] = SqlDbType.Int;
				theSqlDbTypeArray15[2] = SqlDbType.Int;
				theSqlDbTypeArray15[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray15[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray15[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray15[6] = SqlDbType.Int;
				theSqlDbTypeArray15[7] = SqlDbType.NVarChar;
				theObjectArray15 = new object[8];
				theObjectArray15[0] = this._clrISN;
				theObjectArray15[1] = 0;
				theObjectArray15[2] = 174;
				theObjectArray15[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray15[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray15[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray15[6] = 2;
				theObjectArray15[7] = this.txtMomMocP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray15, theSqlDbTypeArray15, theObjectArray15);
				
			L_1294:
				
				{
				}
				if (this.txtMomMocT.Text == "")
				{
					goto L_13D3;
				}
				SqlConnection theSqlConnection16 = this.db.CreateConnections ();
				theStringArray16 = new string[8];
				theStringArray16[0] = "@clrISN";
				theStringArray16[1] = "@nscISN";
				theStringArray16[2] = "@nscISNRoot";
				theStringArray16[3] = "@srtScanOutList";
				theStringArray16[4] = "@srtOpinion";
				theStringArray16[5] = "@srtSuggestion";
				theStringArray16[6] = "@srtPositionStatus";
				theStringArray16[7] = "@srtScanListString";
				theSqlDbTypeArray16 = new SqlDbType[8];
				theSqlDbTypeArray16[0] = SqlDbType.Int;
				theSqlDbTypeArray16[1] = SqlDbType.Int;
				theSqlDbTypeArray16[2] = SqlDbType.Int;
				theSqlDbTypeArray16[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray16[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray16[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray16[6] = SqlDbType.Int;
				theSqlDbTypeArray16[7] = SqlDbType.NVarChar;
				theObjectArray16 = new object[8];
				theObjectArray16[0] = this._clrISN;
				theObjectArray16[1] = 0;
				theObjectArray16[2] = 174;
				theObjectArray16[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray16[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray16[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray16[6] = 1;
				theObjectArray16[7] = this.txtMomMocT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray16, theSqlDbTypeArray16, theObjectArray16);
				
			L_13D3:
				
				{
				}
				if (this.txtHaHong.Text == "")
				{
					goto L_150F;
				}
				SqlConnection theSqlConnection17 = this.db.CreateConnections ();
				theStringArray17 = new string[8];
				theStringArray17[0] = "@clrISN";
				theStringArray17[1] = "@nscISN";
				theStringArray17[2] = "@nscISNRoot";
				theStringArray17[3] = "@srtScanOutList";
				theStringArray17[4] = "@srtOpinion";
				theStringArray17[5] = "@srtSuggestion";
				theStringArray17[6] = "@srtPositionStatus";
				theStringArray17[7] = "@srtScanListString";
				theSqlDbTypeArray17 = new SqlDbType[8];
				theSqlDbTypeArray17[0] = SqlDbType.Int;
				theSqlDbTypeArray17[1] = SqlDbType.Int;
				theSqlDbTypeArray17[2] = SqlDbType.Int;
				theSqlDbTypeArray17[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray17[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray17[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray17[6] = SqlDbType.Int;
				theSqlDbTypeArray17[7] = SqlDbType.NVarChar;
				theObjectArray17 = new object[8];
				theObjectArray17[0] = this._clrISN;
				theObjectArray17[1] = 0;
				theObjectArray17[2] = 85;
				theObjectArray17[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray17[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray17[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray17[6] = 2;
				theObjectArray17[7] = this.txtHaHong.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray17, theSqlDbTypeArray17, theObjectArray17);
				
			L_150F:
				
				{
				}
				if (this.txtVomHongP.Text == "")
				{
					goto L_164A;
				}
				SqlConnection theSqlConnection18 = this.db.CreateConnections ();
				theStringArray18 = new string[8];
				theStringArray18[0] = "@clrISN";
				theStringArray18[1] = "@nscISN";
				theStringArray18[2] = "@nscISNRoot";
				theStringArray18[3] = "@srtScanOutList";
				theStringArray18[4] = "@srtOpinion";
				theStringArray18[5] = "@srtSuggestion";
				theStringArray18[6] = "@srtPositionStatus";
				theStringArray18[7] = "@srtScanListString";
				theSqlDbTypeArray18 = new SqlDbType[8];
				theSqlDbTypeArray18[0] = SqlDbType.Int;
				theSqlDbTypeArray18[1] = SqlDbType.Int;
				theSqlDbTypeArray18[2] = SqlDbType.Int;
				theSqlDbTypeArray18[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray18[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray18[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray18[6] = SqlDbType.Int;
				theSqlDbTypeArray18[7] = SqlDbType.NVarChar;
				theObjectArray18 = new object[8];
				theObjectArray18[0] = this._clrISN;
				theObjectArray18[1] = 0;
				theObjectArray18[2] = 3;
				theObjectArray18[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray18[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray18[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray18[6] = 2;
				theObjectArray18[7] = this.txtVomHongP.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray18, theSqlDbTypeArray18, theObjectArray18);
				
			L_164A:
				
				{
				}
				if (this.txtVomHongT.Text == "")
				{
					goto L_1785;
				}
				SqlConnection theSqlConnection19 = this.db.CreateConnections ();
				theStringArray19 = new string[8];
				theStringArray19[0] = "@clrISN";
				theStrijgArray19[1] = "@nscISN";
				theStringArray19[2] = "@nscISNRoot";
				theStringArray19[3] = "@srtScanOutList";
				theStringArray19[4] = "@srtOpinion";
				theStringArray19[5] = "@srtSuggestion";
				theStringArray19[6] = "@srtPositionStatus";
				theStringArray19[7] = "@srtScanListString";
				theSqlDbTypeArray19 = new SqlDbType[8];
				theSqlDbTypeArray19[0] = SqlDbType.Int;
				theSqlDbTypeArray19[1] = SqlDbType.Int;
				theSqlDbTypeArray19[2] = SqlDbType.Int;
				theSqlDbTypeArray19[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray19[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray19[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray19[6] = SqlDbType.Int;
				theSqlDbTypeArray19[7] = SqlDbType.NVarChar;
				theObjectArray19 = new object[8];
				TheObjectArray19[0] = this._clrISN;
				theObjectArray19[1] = 0;
				theObjectArray19[2] = 3;
				theObjectArray19[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray19[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray19[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray19[6] = 1;
				theObjectArray19[7] = this.txtVomHongT.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray19, theSqlDbTypeArray19, theObjectArray19);
				
			L_1785:
				
				{
				}
				if (this.txtThanhQuan.Text == "")
				{
					goto L_18C0;
				}
				SqlConnection theSqlConnection20 = this.db.CreateConnections ();
				theStringArray20 = new string[8];
				theStringArray20[0] = "@clrISN";
				theStringArray20[1] = "@nscISN;
				theStringArray20[2] = "@nscISNRoot";
				theStringArray20[3] = "@srtScanOutList";
				theStringArray20[4] = "@srtOpinion";
				theStringArray20[5] = "@srtSuggestion";
				theStringArray20[6] = "@srtPositionStatus";
				theStringArray20[7] = "@srtScanListString";
				theSqlDbTypeArray20 = new SqlDbType[8];
				theSqlDbTypeArray20[0] = SqlDbType.Int;
				theSqlDbTypeArray20[1] = SqlDbType.Int;
				theSqlDbTypeArray20[2] = SqlDbType.Int;
				theSqlDbTypeArray20[3] = SqlDbType.NVarChar;
				theSqlDbTypeArray20[4] = SqlDbType.NVarChar;
				theSqlDbTypeArray20[5] = SqlDbType.NVarChar;
				theSqlDbTypeArray20[6] = SqlDbType.Int;
				theSqlDbTypeArray20[7] = SqlDbType.NVarChar;
				theObjectArray20 = new object[8];
				theObjectArray20[0] = tHis._clrISN;
				theObjectArray20[1] = 0;
				theObjectArray20[2] = 4;
				theObjectArray20[3] = this.tbNoiSoiNgoaiDanhSach.Text.ToString ();
				theObjectArray20[4] = this.txtCamNghi.Text.ToString ();
				theObjectArray20[5] = this.txtDeNghi.Text.ToString ();
				theObjectArray20[6] = 2;
				theObjectArray20[7] = this.txtThanhQuan.Text;
				this.db.ExecuteStoredProc ("sp_ScanResult", theStringArray20, theSqlDbTypeArray20, theObjectArray20);
				
			L_18C0:
				return;
			}
			
			public bool ThumbnailCallback ()
			
			{
				bool theBoolean;
				theBoolean = false;
				goto L_0004;
				
			L_0004:
				
				{
				}
				return theBoolean;
			}
			
			private void tvNoiSoi_DoubleClick (object sender, EventArgs e)
			
			{
				string theString;
				int i;
				int i2;
				int i3;
				
			L_0000:
				try
				{
					theString = this.tvNoiSoi.SelectedNode.Text.ToString ();
					i = 0;
					i2 = 0;
					if (this.tvNoiSoi.SelectedNode.Parent.IsSelected)
					{
						goto L_00C7;
					}
					i = this.lbNoiSoi.Items.Count;
					if (i != 0)
					{
						goto L_0070;
					}
					int i4 = this.lbNoiSoi.Items.Add (this.tvNoiSoi.SelectedNode.Text.ToString ());
					goto L_00C7;
					
				L_0070:
					
					{
					}
					i3 = 0;
					goto L_009A;
					
				L_0074:
					
					{
					}
					if (theString != this.lbNoiSoi.Items[i3].ToString ())
					{
						goto L_0096;
					}
					i2++;
					
				L_0096:
					
					{
					}
					i3++;
					
				L_009A:
					
					{
					}
					if (i3 < i)
					{
						goto L_0074;
					}
					if (i2 != 0)
					{
						goto L_00C7;
					}
					int i5 = this.lbNoiSoi.Items.Add (this.tvNoiSoi.SelectedNode.Text.ToString ());
					
				L_00C7:
					
					{
					}
					this.NoiSoiCheck ();
				}
				catch
				{
					
				L_00CF:
					
					{
					}
				}
				
			L_00D2:
				return;
			}
			
			private void txtOngTaiNgoaiP_TextChanged (object sender, EventArgs e)
			
			{
				return;
			}
			
		#endregion
	}
	
}

